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

Enhancement inbound function module IDOC_INPUT_ORDERS

Former Member
0 Likes
2,466

Hello all. Can anyone help me with the following issue plz?

The inbound function module IDOC_INPUT_ORDERS needs to be modified so as to cater for the following.

When Idoc contains 'M' for flags AUTLF(VBAK) and KZAZU(VBKD), which is currently not handled in standard SAP, we need to look for the master data in table KNVV to set the flags as per the fields in this table for the new order to be created.

However my problm is that in program MV45AFZZ exits USEREXIT_MOVE_FIELD_TO_VBAK and USEREXIT_MOVE_FIELD_TO_VBKD, evn thou I set the flags in structure VBAK and VBKD according to what KNVV contains. the sales is not being created.

In function IDOC_INPUT_ORDERS; include LVEDAF2U, the flags autlf and kzazu are copied to the structure 'M' and I think this is wat is preventing the SO from being created because at that point in debug when I tried setting 'X' instead of 'M', the SO was created. I cant find a way to modify the contents of this structure because in the exits I am using, the value for these 2 fields for stucture XVBAK is either blank or not accessible.

Does anyone have a solution to this?

6 REPLIES 6
Read only

Former Member
0 Likes
1,442

hello,

there are some exit avialable in the mentioned FM...

:- when it is going to fill record EDIDD data for every segment....

I would suggest to debug that part carefully and hope to find suitable exit.

Thanks.

Read only

Former Member
0 Likes
1,442

hi charisma,

you need to use the user exit EXIT_SAPLVEDA_001. You can create a project from CMOD and add the enhancement VEDA0001 and activate the above exit. you will have the idoc segment data avialable and in the include program you can manipulate the IDOC data basing on your requirements.

Thanks,

Satya

Read only

eduardo_hinojosa
Active Contributor
0 Likes
1,442

Hi,

First, check Note 753153 - FAQ: Customer-functions in IDOC_INPUT_ORDERS. Try with the right userexit and do the check of flags AUTLF(VBAK) and KZAZU(VBKD), and if it is not true, change the IDOC status.

I hope this helps you

Regards,

Eduardo

Read only

Former Member
0 Likes
1,442

Hello All,

Thanks for ur suggestions..I finally found a solution..

As you suggested, I used the EXIT_SAPLVEDA_001. and accessed the structure XVBAK using field symbol. When the flag M ws being copied from the idoc to the structure, no SO was being created..coz allowed values are only X are blank. I cleared M in the exits..

Keeping fingers crossed for no regression..LOL..

Thank you all

Cheers

Read only

0 Likes
1,442

Hi,

did you check the interface of the function module EXIT_SAPLVEDA_001?

You don't need to read XVBAK using field-symbol, because the data is available in the local structure DXVBAK.

Then, you should clear the above mentioned fields only when SEGMENT-SEGNAM = 'E1EDK01'.

Regards,

Andrea

Read only

0 Likes
1,442

yeah thats wat i did..cleared the DXBAK in that exit. but I dont knw.. Could not have access to it directly.. When i wrote "clear DXVBAK-autlf" i gt an error while activating saying the field does not exist in the structure..so had to use field symbol.

Thanks for your response:)