Skip to Content
author's profile photo Former Member
Former Member

Insert Multiple Records into Multiple ZTABLEs inside the BAPI

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2006 at 04:10 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2006 at 04:22 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2006 at 04:23 PM

    Hi,

    also use commit work after modifying ztable.

    Regards

    Amole

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2006 at 04:06 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2006 at 04:09 PM

    Use any of the below statement.

    INSERT dbtab FROM TABLE itab.

    UPDATE dbtab FROM TABLE itab.

    MODIFY dbtab FROM TABLE itab.

    Regards,

    Prakash.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.