Application Development 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: 

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

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos
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.

5 REPLIES 5

former_member181995
Active Contributor
0 Kudos
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.

tarangini_katta
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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

abdul_hakim
Active Contributor
0 Kudos

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

Former Member
0 Kudos

over