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

Insert Multiple Records into Multiple ZTABLEs inside the BAPI

Former Member
0 Likes
802

Hi,

I have a requirement to Insert or Update Multiple Records into a ZTABLE inside the BAPI. Is there any special approach inside the BAPI to insert or update ZTABLEs with multiple records. It looks like the simple INSERT Statement is not working. Can you please suggest me a Suitable solution for this req?

Thanks and Regards,

Kannan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
730

Hai Kannan,

Kindly check the sy-subrc status after each update. Why you do need to go to BAPI here. Whether you are access for non-SAP. Then kindly specify the error in the return parameter of the BAPI(BAPIRETURN).

5 REPLIES 5
Read only

Former Member
0 Likes
730

Hi,

INSERT ZTABLE FROM TABLE ITAB.

The itab structure should be of the structure ZTABLE..

Same for MODIFY and update.

MODIFY ZTABLE FROM TABLE ITAB..

Thanks,

Naren

Read only

Former Member
0 Likes
730

Use any of the below statement.

INSERT dbtab FROM TABLE itab.

UPDATE dbtab FROM TABLE itab.

MODIFY dbtab FROM TABLE itab.

Regards,

Prakash.

Read only

Former Member
0 Likes
731

Hai Kannan,

Kindly check the sy-subrc status after each update. Why you do need to go to BAPI here. Whether you are access for non-SAP. Then kindly specify the error in the return parameter of the BAPI(BAPIRETURN).

Read only

Former Member
0 Likes
730

Hi,

insert ztable from table itab.

ztable and itab structure should be same

modify ztable form table itab.

ztable and itab structure should be same

Regards

amole

Read only

Former Member
0 Likes
730

Hi,

also use commit work after modifying ztable.

Regards

Amole