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 are the properties of selection screen?

556


Double click function on the lists, identifying the line selected by the user on the list?

624


What is client in the sap system? : sap abap hr

565


hi to all abap interview guys please notify this .. first if u have any doubts please go through google search or else please do debugging with some sample programs . but don't post even silly questions too. thanking you.

1541


Is sap xi intended to replace ale?

576






Is the basic list deleted when the new list is created?

574


The extract statements in field groups can be used before or after processing the sort statements. State true or false. : abap modularization

605


What are the internal tables and work area?

548


How to combine multiple billing into one RV document ( Step by Step)?

1533


Why do we need enhancements?

624


Explain the table, which contain the details of all the name of the programs and forms?

510


ABAP : Classical reports events name

897


When value table becomes check table?

571


Can we reuse a userexit?

1070


While sorting field groups we cannot use more than one key field. State true or false. : abap modularization

582