cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC Posting with new fields in VA01

Former Member
0 Kudos

Hi,

Previously i asked for creating New fields in VA01 screen.

i got that now i need to create a sales order based on the Inbound IDOC which i get and i will be getting new fields which are created .

And this Fields data is coming from an Extension to the Standard IDOC. Sales order is getting created but the new fields are not getting populated nor stored in VBAK Table.

pls let me know why is this.And provide me with a soultion.

MG.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

i had a similar problem in my last assignment .

I think you are using IDOC_INPUT_ORDERS F/M for Posting the IDOC.

Here once you go into the code at line number 116 you can see that they are calling Transaction VA01 for posting the sales order .

If you go into any perform there you would be having the User Exits . Use the exits and you need to process the IDOC in the Foreground so that you can catch the Screen flow and the screen number , as you do in SHDB.

Now you need to make sure that you are getting the new screens there where you have desigined the fields on the screen.

And write the BDC Code with proper OK Codes before the Save ok code SICH is reached .

And make sure that you are writing the code at the header level only as you need to update the VBAK Table.

As this is a single screen you can directly write the BDC code for populating the fields data and at last make sure that the ok-code you are giving is the right one.

Pls let me know if this problem is solved , i need to check the code in which exit i have written . But here it would be the same EXIt i think .

the exit name is EXIT_SAPLVEDA_002 .

Pls check this and let me know.

Regards,

Naidu.

Former Member
0 Kudos

Hi ,

It has given me some solution or a way.

if you can be more specific at what point we have to do.

It would be great.

Thanks & Regards,

MG.

Former Member
0 Kudos

Hi,

As i said previously , use the Exit EXIT_SAPLVEDA_002.

And try to populate the BDCDATA here in this Exit.

Fill all the Fields data here . Before this fill the Additional Data Screen Number and Ok Code .

After all this make sure that the next Ok code is it goes to the Item data.

So you have to basically debug the tranasaction and run the IDOC in foreground.

See when and after what screen its going to Item level data , at this point take a note of the screen and Ok code .

And when you debug the IDOC_INPUT_ORDERS make sure at what point this data is filled and before that you use the exit and fill the BDCDATA with the proper ok codes.

Pls let me know if this would solve the problem.

Regards,

Naidu.

Former Member
0 Kudos

Naidu , i hope this problem will solve and i am getting all the soultions.

Answers (0)