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

Custom Bapi

Hi,

I wnat to create a custom Bapi to update the custom table.

Should i use write the inser and update queries inside the Function Module.

is there any other way.

Please let me know.

Regards

kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2005 at 07:42 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2005 at 07:44 AM

    Yes you can use Insert, Update, Modify statements to update the custome table.

    In case of Standard tables, you can use standard BAPIs.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2005 at 07:54 AM

    U can deveop a custom bapi. It can be used to update custom table. The proper code needs to be written.

    May be u can have the final data in an internal table or other way also.

    say the custom table has 2 key fields.

    before puttingthe data into custom table,

    loop at <int'table>.

    custom-table-field = inttable-field.

    .........

    <populate all fields>.

    use UPDATE <custom table>

    where <field1> = <inttable-field1>

    and <field2> = <inttable-field2>.

    endloop.

    or else declare a work area which is of type custom table.

    loop at <int'table> into workarea.

    update <custom table> from work area

    where <field1> = <inttable-field1>

    and <field2> = <inttable-field2>.

    endloop.

    Hope this will solve ur problem.

    Pl. award appropriate points.

    endloop.

    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.