Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

Field "IF_INPUT_VIEW->ELEMENT_NODE_VBAK" is unknown error in webdynpro

$
0
0

METHOD WDDOAPPLICATIONSTATECHANGE .

   DATA: NODE_NODE_VBAK  TYPE REF TO IF_WD_CONTEXT_NODE,

         ELEM_NODE_VBAK  TYPE REF TO IF_WD_CONTEXT_ELEMENT,

         STRU_NODE_VBAK  TYPE  IF_INPUT_VIEW->ELEMENT_NODE_VBAK.

* navigate from <CONTEXT> to <NODE_VBAK> via lead selection

   NODE_NODE_VBAK = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_INPUT_VIEW=>WDCTX_NODE_VBAK ).

* get element via lead selection

   ELEM_NODE_VBAK = NODE_NODE_VBAK->GET_ELEMENT).

* get all declared attributes

   ELEM_NODE_VBAK->GET_STATIC_ATTRIBUTES(

     IMPORTING

       STATIC_ATTRIBUTES = STRU_NODE_VBAK ).

 

hi,

 

Please help me in this issue.

 

 

   DATA: LS_WHERE(72) TYPE C,

         LT_WHERE LIKE TABLE OF LS_WHERE,

         LT_VBAK TYPE STANDARD TABLE OF ZSTR_VBAK.

* create where condition

   IF NOT STRU_NODE_VBAK-VBELN EQ ''.

     CONCATENATE 'VBELN = ''' STRU_NODE_VBAK-VBELN '''' INTO LS_WHERE.

     APPEND LS_WHERE TO LT_WHERE.

   ENDIF.

   IF NOT STRU_NODE_VBAK-ERDAT EQ '00000000'.

     CONCATENATE 'ERDAT = ''' STRU_NODE_VBAK-ERDAT '''' INTO LS_WHERE.

     IF STRU_NODE_VBAK-VBELN NE ''.

       CONCATENATE 'AND' LS_WHERE INTO LS_WHERE SEPARATED BY SPACE.

     ENDIF.

     APPEND LS_WHERE TO LT_WHERE.

   ENDIF.

 

   SELECT VBELN ERDAT ERZET ERNAM ANGDT BNDDT AUDAT VBTYP TRVOG AUART

          AUGRU GWLDT SUBMI LIFSK FAKSK NETWR WAERK VKORG VTWEG SPART

          VKGRP GSBER

   FROM VBAK INTO TABLE LT_VBAK WHERE (LT_WHERE).

 

   DATA:

     NODE_NODE_ALV                       TYPE REF TO IF_WD_CONTEXT_NODE,

     STRU_NODE_ALV                       TYPE IF_INPUT_VIEW=>ELEMENT_NODE_ALV .

* navigate from <CONTEXT> to <NODE_ALV> via lead selection

   NODE_NODE_ALV = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_INPUT_VIEW=>WDCTX_NODE_ALV ).

* get all declared attributes

   NODE_NODE_ALV->BIND_TABLE( LT_VBAK ).

ENDMETHOD.


Get value from a structure of a class

$
0
0

Hello,

 

I have a object IO_OBJECT declared as:

 

 

 

data IO_OBJECT type ref to object.

 

 

 

At run time when I check this object; it has a class CL_RECN_CONTRACT as its component.

 

 

 

I want to read structure of this class but not able to do so.

 

 

 

Kindly help with the syntax.

 

 

 

Thanks

Bapi Update LongText in Prod Order

$
0
0

Hi Experts,

     I need to add something to the Long Text Field in the Production Order from my ABAP Program. So anyone know to how to do that, by using a BAPI or Function Module .

Add new fields in HR report 'S_AHR_61016210'

$
0
0

I have to add a new custom field in report S_AHR_61016210.

How to do that, please guide me.

How to display results for a material from CO09 in ECC ??

$
0
0

Hi,

 

     I have a requirement to display all the orders for a material in co09 in a custom report in ECC.

   

     In ECC When i tried to execute co09 by giving material, plant and checking rule it is displaying all the orders for that material but it is taking to SCM system, So my requirement is to display these orders in a custom report in ECC side. I tried with function modules AVAILABILITY_CHECK and BAPI_ATPAPO_CHECK but i am not able to see any results there.

 

     Can any one of you please tell me solution to display those orders in ECC Custom report.

Write statement output is not as expected

$
0
0

Hello People,

 

Please go through the following code.

 

TYPES: BEGIN OF TY_MARA,

                   MATNR TYPE MARA-MATNR,

                   MEINS TYPE MARA-MEINS,

             END OF TY_MARA.

 

DATA: IT_MARA TYPE STANDARD TABLE OF TY_MARA,

            WA_MARA TYPE TY_MARA.

 

SELECT MATNR MEINS FROM MARA INTO WA_MARA WHERE MATNR = '000000000000000001'.

   APPEND WA_MARA TO IT_MARA.

ENDSELECT.

 

LOOP AT IT_MARA INTO WA_MARA.

   WRITE: WA_MARA-MATNR.

ENDLOOP.


When I execute this I expect that the material number to be printed only once.

But, after execution the screen displays the material number twice.


Can anyone help me with this ?


Thanks in advance

Copying Standard Program with Enhancements

$
0
0

Hi Experts,

 

I am copying the Standard Program with Includes ...But the  Enhancements are not populating into it..

 

Can u suggest an idea of populating the Enhancements automatically into the ZProgram ...

 

 

Regards,

Karthik S

UKM_BP, Credit data for BP tcode.

$
0
0

Hi All,

 

I used the class cl_ukm_business_partner & cl_ukm_account to update the credit data for ukm_bp tcode. I want to update the risk class, check rule and credit limit. I also used the save_all method to save the changes. But still it is not updating the data. Can anyone highlight what could be the problem here?

Below is my code:

 

DATA: io_facade TYPE REF TO cl_ukm_facade,

  io_partner TYPE REF TO cl_ukm_business_partner,

  io_bupa_factory TYPE REF TO cl_ukm_bupa_factory,

  io_account TYPE REF TO cl_ukm_account,

  lw_bp_credit_sgm TYPE ukm_s_bp_cms_sgm.

 

 

DATA: lwa_ukm_s_bp_cms TYPE ukm_s_bp_cms.

 

 

DATA: lv_partner TYPE bu_partner,

            lv_credit_sgmnt TYPE ukm_credit_sgmnt.

 

 

io_facade = cl_ukm_facade=>create( i_activity = cl_ukm_cnst_eventing=>bp_maintenance ).

io_bupa_factory = io_facade->get_bupa_factory( ).

 

lv_partner = '3000000011'.

lv_credit_sgmnt = 'US01'.

 

io_partner = io_bupa_factory->get_business_partner( lv_partner ).

 

io_partner->get_bp_cms( IMPORTING es_bp_cms = lwa_ukm_s_bp_cms ).

lwa_ukm_s_bp_cms-risk_class = 'D'.

io_partner->set_bp_cms( lwa_ukm_s_bp_cms ).

 

 

CALL METHOD io_bupa_factory->get_credit_account

  EXPORTING

  i_partner = lv_partner

  i_credit_sgmnt = lv_credit_sgmnt

  RECEIVING

  ro_credit_account = io_account.

 

io_account->get_bp_cms_sgm( IMPORTING es_bp_cms_sgm = lw_bp_credit_sgm ).

lw_bp_credit_sgm-credit_limit = '20100.00'.

lw_bp_credit_sgm-xcritical = 'X'.

lw_bp_credit_sgm-limit_chg_date = sy-datum.

io_account->set_bp_cms_sgm( EXPORTING is_bp_cms_sgm = lw_bp_credit_sgm ).

 

io_bupa_factory->save_all( ).


Error while executing function "ALSM_EXCEL_TO_INTERNAL_TABLE"

$
0
0

Dear experts,


I am uploading the data from excel file using ALSM_EXCEL_TO_INTERNAL_TABLE function module in one of the report. The function goes well in the backend but

unfortunately, when I run the web, it throws an error: Error during import of clipboard contents, error key: RFC call ended with "System Failure" exception.I have enter to SU22 and find no errors about it.Have you guys ever met this problem? Please show me the the solution, or guide me how to fix this error.

 

Thanks in advance.

Activation of Field name showing partially activated

$
0
0

Dear All,

 

Activation of Field name showing partially activated.

 

 

please help me to activate fully field name -standard.

 

 

Regards

Sanjeet

IDOC for creating the Inbound delivery with nested HU assignment for PO

$
0
0


Hi,

 

I want to create inbound delivery with nested HU assignment for Purchase order,can you please suggest an IDOC type which is suitable for creating the Inbound delivery for PO.

 

 

Regards

Govind

how to block delivary by userexit?

$
0
0

Hi experts,

 

if saleorder current date exceeds more than 60 days the delivary willl be block ,

 

can u please tell me what is the exact userexit name how to implement it?

OOP ALV new row add

$
0
0

Hi experts,

 

I want to get default a few value from gs_itab when a new row create on alv grid. How can i catch add new row event?

 

Adsız.png

 

Thanks

Ömer Faruk

validation in me21n/me22n for service details,

$
0
0

hi frnds,

 

I have requirement to do validation in me21n/me22n .

 

Give PO no. ‘6600003075’ and enter.

In item under 'service' tab .click on 'gross price'.

a pop up will come.if user enter some value or change value, warning will come based on the logic.

 

 

i have trying to do implicit but no implicit option present...any exit/badi there, will solve my issue..

 

 

BELOW IS THE SCREENSHOT....

 

THANK YOU FOR HELPING......ADVANCE

GUIXT SAPScript using SHD0

$
0
0

Hi all,

 

I am trying to create screen variant for a standard transaction using TCode : SHD0.

i need to use GUIXT while create the screen variant.

when i put the Code in the GUIXT script, the field is not affecting although i have tested the GUI script using Synactive GUIXT and working fine.

Can anyone tell me how the GUIXT Script working with Screen Variant SHD0.


ABAP: Payroll area parameter is not working in RPCLOG00 report.

$
0
0

Dear Experts,

 

I am using sap report of employee's loan . I have used the following code.


SUBMIT RPCLOG00 andRETURN

 

  WITH PNPBEGDA =  PNPBEGDA " Data Selection Period - From

WITH PNPENDDA =  PNPENDDA " Data Selection Period - To

 

WITH PNPBEGPS =  PNPBEGPS "Person selection period  - From

WITH PNPENDPS =  PNPENDPS "Person selection period  - To

  

WITH PNPTIMR6 = PNPTIMR6  " Other Period Radio

WITH PNPPERNR IN PNPPERNR " Emp No

WITH PNPPABRP EQ PNPPABRP

WITH PNPPABRJ EQ PNPPABRJ

WITH        PNPDISBD   =  PNPDISBD

WITH        PNPDISED   = PNPDISED

WITH        PNPDISPP   =  PNPDISPP

WITH        PNPDISPJ  =  PNPDISPJ

WITH PNPXABKR  =  PNPXABKR "Payroll area

WITH PNPABKRS  IN  PNPABKRS "Payroll area

WITH PNPTIMR9  EQ  PNPTIMR9 "Current Period

WITH PNPTIMRA  EQ  PNPTIMRA  "Other period

WITH PNPSTAT2  IN  PNPSTAT2  " Status

WITH PNPWERKS  IN  PNPWERKS  " Pers area

WITH PNPBTRTL  IN  PNPBTRTL  " Pers SubArea

WITH PNPORGEH  IN  PNPORGEH " Org Unit

EXPORTING LIST TOMEMORY.

 

But the following payroll parameters are not working in the above code.

WITH PNPXABKR  =  PNPXABKR "Payroll area

WITH PNPABKRS  IN  PNPABKRS "Payroll area


What can be the reason.? Please note that the origional sap report can be run by the tcode S_AHR_61016210.

This is employee's loan report.


Regards,

Aneel


Early payment discount not taken for FB01 when doc created via BAPI_ACC_DOCUMENT_POST

$
0
0

Hi,

 

I am facing the problem that I am creating documents via BAPI_ACC_DOCUMENT_POST the early payment discount doesn't work. If I am using the same data (that I post via the BAPI) everything works fine. Is there a way to let the discount base calculate by the system or do I need to fill this in the BAPI? In the help for the discount base field there is an information that there is a customizing for the caluculation but I cannot find it and I don't know if this would also fit for the bapi.


How do you handle the discount for the BAPI?


Regards, Vanessa

Problem with creation of General Task List with LSMW

$
0
0

Hi All,

 

I am using LSMW direct input method 0490 for Creating General Task List . Now I am facing the below challenges :

 

1. The system doesn't allow any external numbering for transaction IA05 for PLNNR i.e. Task List Group. Hence when I am not mapping the field against PLNNR , it is successfully creating the PLNNR and task list for the 1st transaction.

 

2. But the transaction holds the value of the created Task List and it is creating the subsequent tasklists under the same PLNNR which is created for the

   1st transaction.

 

How to clear the parameter inside the Batch Input Session ? I have tried maintaining blank in user profile for parameter PLN but of no use.

 

And if I pass any values like * in the PLNNR it is giving error "External Number Assignment not possible"

 

Please help.

 

Thanks,

Nilabja

How to obtain budget ,plan and actual costs for a given WBS number.

$
0
0

hello all,

 

how do we get budget ,plan and actual costs for a given WBS number,

 

is there any Function Module or BAPI  to get these costs.

 

thanks in advance....

Module pool

$
0
0

Hi friends,

 

I created one development on module pool in that i have one barcode screen element when employee id card barcode is readed with scanner means the other screen elements should fill automatically now my requirment is i have to restrict manually entry of barcode screen element that barcode screen element should be filled when id barcode is scanned by scanner only please give me idea

Viewing all 8768 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>