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

why we use bapi 'X' structures to update the data in data base

Hi experts,

why we use bapi structures ('x') to update the data in data base

ex; BAPI_BANK_CREATE this function module does not require to X structure to update data ,

but BAPI_BANK_CHANGE this FM is needed to update the data base..

some times i have seen some function modules using BAPI-X structures to update data base,

ex: IDOC_INPUT_SALESORDER_CREATEFR this FM had used to update sales order in to data base...

could u tell me when it is required bapi-X structures to update data base.

thanks & regards,

kalyan.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Dec 09, 2008 at 05:05 AM
    could u tell me when it is required bapi-X structures to update data base.

    Whenever you Create new entries from BAPI than you must Update with value X for commit your changes to reflect in Database.

    But not all BAPI have this Flag only few have this Flag.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2008 at 09:26 AM

    Hi,

    While createing the any business object through BAPI the 'X' is not necessary.

    But after creating the Business Object when u want to update the same number the we need to put 'X' in the BAPi to update the data for same record.

    Thanks,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2008 at 08:33 AM

    Hi.

    You use the X-structures in CHANGE mode (not CREATE) to indicate which fields you want to change.

    It's as simple as that. With this technique you do not risk to update fields for which you have no input data in the BAPI.

    Regds

    Elisabet

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 17, 2008 at 11:09 AM

    Hi

    X Structures are a means of tracking whether the user is making change of any fields. For instance if the user is going to update the material no say for eg through the segment elmarm-matnr then the correponding xsegment for this should be marked with 'X'. In this way you can track easily.

    Cheers,

    Hakim

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 10:16 AM

    over

    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.