Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PO_CREATE1 - Extensionin Parameters

Former Member
0 Likes
1,060

Hi,

I'm currently working on an LSMW using BAPI to create PO. The name of the BAPI is BAPI_PO_CREATE1.

I'd like to extend the field using "ExtensionIn" dictionary reference "BAPIPAREX". Please let me know how do I fill the values in the following fields in LSMW.

Parameter fields:

STRUCTURE Structure name of BAPI table extension

VALUEPART1 Data part of BAPI extension parameter

VALUEPART2 Data part of BAPI extension parameter

VALUEPART3 Data part of BAPI extension parameter

VALUEPART4 Data part of BAPI extension parameter

I tried to fill the structure name "BAPIPAREX" in the strucure but how do the fields in this structure be mapped to Valuepart1.

Please let me know in case of any issues.

Thanks,

Ramky.G

Hi,

I'm currently working on an LSMW using BAPI to create PO. The name of the BAPI is BAPI_PO_CREATE1.

I'd like to extend the field using "ExtensionIn" dictionary reference "BAPIPAREX". Please let me know how do I fill the values in the following fields in LSMW.

Parameter fields:

STRUCTURE Structure name of BAPI table extension

VALUEPART1 Data part of BAPI extension parameter

VALUEPART2 Data part of BAPI extension parameter

VALUEPART3 Data part of BAPI extension parameter

VALUEPART4 Data part of BAPI extension parameter

I tried to fill the structure name "BAPIPAREX" in the strucure but how do the fields in this structure be mapped to Valuepart1.

Please let me know in case of any issues.

Thanks,

Ramky.G

2 REPLIES 2
Read only

Former Member
0 Likes
753

you can try this way, your new fields which table added , below example is VBAP

move 'BAPE_VBAP' to lwa_extensionin-structure.

lwa_bape_vbap-posnr = sd_item_ls-itm_number.

lwa_bape_vbap-yy_slotid = lv_slotid.

move lwa_bape_vbap-yy_slotid to lwa_bape_vbap-yy_slotid.

move lwa_bape_vbap to lwa_extensionin-valuepart1.

append lwa_extensionin to extensionin_lt.

clear: lwa_extensionin,

Read only

Former Member
0 Likes
753

HI,

Check below link, it may be helpful for you.

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/rfc%252bpurchase%252border%252bcreation%...

Thanks,

Asit Purbey.