‎2007 Aug 27 7:02 AM
Hi Friends,
I am in a typical situation in my interface where in the First scenario I create record using BAPI but for the second time the interface runs for updating the records.
so my interface will contain # symbol where data do not need to change for the existing record.
<b>So, my question is if I pass blank structure in BAPI where data do not need to change, Will the BAPI update my existing data with Blanks or Not?</b>
If someone had come across a similar situation, his experience in this would really helpful for me. kindly reply...Will give u reward point definitely if the solution is correct.
thanks,
pradeep
‎2007 Aug 27 7:07 AM
A lot of time when you have BAPI to make update, you will find two times the structures or the tables names. A first time for the value a second time, the same with an X at the end, with only 1 char value (not for the key).
Example:
IT_TOTO & IT_TOTOX
in IT_TOTOX, you will set an X in the field you would like to update.
So IT_TOTOX-FIELD1 = X and IT_TOTO-FIELD1 = "" will set a blank in the table.
‎2007 Aug 27 7:07 AM
A lot of time when you have BAPI to make update, you will find two times the structures or the tables names. A first time for the value a second time, the same with an X at the end, with only 1 char value (not for the key).
Example:
IT_TOTO & IT_TOTOX
in IT_TOTOX, you will set an X in the field you would like to update.
So IT_TOTOX-FIELD1 = X and IT_TOTO-FIELD1 = "" will set a blank in the table.
‎2007 Aug 27 7:37 AM
hi,
I know that generally we have another structure where in we pass changed values.
But for the BAPI which i am using does not have this structure so I need to check in my program itself.
So I reiterate my question, If I pass blank structure in the BAPI will it update with BLANK values for the existing values.
Pradeep
‎2007 Aug 27 12:49 PM
do the validation for u r blank structure.............. then it wont update the blanks....
reward points if helpful