Application Development and Automation 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: 
Read only

BAPI Query

Former Member
0 Likes
569

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

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
547

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.

3 REPLIES 3
Read only

FredericGirod
Active Contributor
0 Likes
548

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.

Read only

0 Likes
547

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

Read only

Former Member
0 Likes
547

do the validation for u r blank structure.............. then it wont update the blanks....

reward points if helpful