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 Extension.

Former Member
0 Likes
683

Hello All,

I am using BAPI for contract creation and i want to extend this BAPI. For this i am using BAPE_VBAK. This Structure of contains around 50 z-fields whose sequesnce is not relevant to my requirement.Whenever i am populating w_bape_vbak structure similar to BAPE_VBAK. and passing it to valuepart1 it is not picking up all the values as some values are corssing 240 characters ( size of valuepart1).

wa_extensionin-structure = 'BAPE_VBAK'.

wa_extensionin-valuepart1 = wa_bape_vbak.

For this do i need to use valuepart2 also. If yes how to use it.its will be better If explained in code format.

Rushikesh

2 REPLIES 2
Read only

former_member404244
Active Contributor
0 Likes
650

Hi,

Create a append structure in the structure BAPIPAREX .Now add ur zfields in the new append structure...

Regards,

Nagaraj

Read only

leap123
Explorer
0 Likes
585

You can do it by below code

wa_extensionin-valuepart1 = wa_bape_vbak+0(240).

wa_extensionin-valuepart2 = wa_bape_vbak+240.