‎2010 Apr 21 3:00 PM
Dear experts,
I have two custom fields in EBAN and I want to create one PR by BAPI_PR_CREATE.
I pass the values in structure EXTENSIONIN but the custom fields don't save.
CLEAR: wa_extensionin, wa_mereqitem.
wa_mereqitem-preq_item = w_preq_item.
wa_mereqitem-zossd_banfn = w_banfn.
wa_mereqitem-zossd_bnfpo = w_bnfpo.
wa_extensionin-structure = 'BAPI_TE_MEREQITEM'.
wa_extensionin+30(960) = wa_mereqitem.
APPEND wa_extensionin TO gt_extensionin.
CLEAR: wa_extensionin, wa_mereqitemx.
wa_mereqitemx-preq_item = w_preq_item.
wa_mereqitemx-zossd_banfn = 'X'.
wa_mereqitemx-zossd_bnfpo = 'X'.
wa_extensionin-structure = 'BAPI_TE_MEREQITEMX'.
wa_extensionin+30(960) = wa_mereqitemx.
APPEND wa_extensionin TO gt_extensionin.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
prheader = wa_header
prheaderx = wa_headerx
IMPORTING
number = w_number
TABLES
return = gt_return
pritem = gt_item
pritemx = gt_itemx
praccount = gt_account
praccountx = gt_accountx
extensionin = gt_extensionin.Can someone help me?
‎2010 Apr 22 6:33 PM
Solved problem implementing the ME_BAPI_PR_CUST badi, using the method MAP2I_EXTENSIONIN and putting following code:
ch_struc = im_container.
The customer fields have to be in the append structure CI_EBANDB for the table EBAN.
‎2010 Apr 27 4:08 AM
Hi Alvaro,
I did the same thing which you had done inside the BADI, but my BAPI isnt calling the imlplentation extension. Did you encounter the same issue.
Rgds
Raj
‎2010 Apr 27 11:21 PM
Did you add the customers fields into the append structure CI_EBANDB for the table EBAN???
‎2010 Apr 27 11:43 PM
Hi,
Yes i did add the fields to the table. Now it is going inside the code but still not populating. Do I need to change the below code ??
ch_struc = im_container.
Rgds
Raj
‎2010 Apr 28 5:39 AM
Hi Alavaro,
To add to that message, I debugged and I could see the custom value getting passed but gets lost somewhere in between. I am wondering where. Should I need to code anywhere else too ?
Regards
Raj
‎2010 Apr 28 2:24 PM
Hi.
I didn't do any more.
Did you add the customers field's of type BAPIUPDATE into the append structure BAPI_TE_MEREQITEMX?
‎2010 Apr 28 11:02 PM
Yup thanks Alavaro..I got it. Some tinkering here and there
Rgds
Raj
‎2010 May 05 12:45 PM
Hi Alvaro Achin,
*How to implement ME_BAPI_PR_CUST badi, using the method MAP2I_EXTENSIONIN?..Can you please send step by step screen shot to implement this scenario?..we are in ECC 6.0.Your help much appreciated...
Regards
Dinesh. A