what is 'X' parameter in BAPI?

Answer Posted / sathish kumar

In BAPIs that cause database changes (for example, Change() and Create() BAPIs), you must be able to distinguish between parameter fields that are to be modified (change-relevant fields) and parameter fields that are to remain unmodified.
Using an initial value is no solution because an initial value could also represent a valid new value. Also, in the ABAP programming language as well as on other development platforms, the value "NULL" should not be assigned to a data type to indicate an empty field.
Standardized change parameters are used to identify fields with modified values in Change() and Create() BAPIs. You can do this in two ways:
Flagging Fields to Identify Fields Containing Modified Values
Comparing Fields to Identify Fields Containing Modified Values
Flagging Fields to Identify Fields Containing Modified Values
In this approach parameter fields containing modified values are identified by including a flag in an additional "change parameter".
An additional change parameter must be created with the same number of fields and the same field names for every parameter in the BAPI containing modified field values.
When the BAPI is called, the fields in the additional change parameter whose counterparts in the corresponding parameter contain modifications, must be marked with an update flag.
This way the BAPI can identify both modified and unmodified fields in the parameter.
Follow the conventions below when you create change parameters to identify modified fields:
The name of the additional change parameter consists of the parameter name with the suffix "X". For instance, if the parameter is called EquiSales, the name of the additional change parameter is EquiSalesX.
The additional change parameter must contain exactly the same number of fields and the same field names as the parameter. You must use the data element BAPIUPDATE (CHAR 1) as the data element for the update fields. This can have the following values:
'X'

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bdc programming? : abap bdc

803


How do you get the number of lines in an internal table?

859


Differentiate between the uline and write: sy-uline statements if any?

986


How to get that a secondary index is attached to a select query?

1160


1/ How do u apprach if error occur in sending idocs ? 2/ where u assigned process code ?

1739


PROGRAM TO CREATE INQUIRY IN SD USING BAPI 'BAPI_INQUIRY_CREATEFROMDATA'

3972


Does the call transaction method allow multiple transactions to be processed by sap? : abap bdc

754


How move-corresponding works

1182


How to select valid lines for secondary list?

842


Write syntax for message error (report)?

894


What is the difference between rfc and bapi function modules? : abap bdc

878


What are the different buffering methods?

816


how to Create reports in SD module such as sales order report, which covers all organization levels, delivery status, invoice status, shipping details and partner function details. The data will be extracted from VBAP, VBPA, VBAK, VBUP, VBFA, KNA1, LIPS, VBRP, MARA, VBEP and KONV tables. plz mention the detail coding Tahnks, Rahul

3134


Workbench request are client dependent or client independent

805


How to transfer the objects? Have to transferred any objects?

847