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

IDOC function module

Former Member
0 Likes
548

Hi all,

I have copied the standard function module IDOC_INPUT_ORDERS as per some requirement. I want to set the billing block and delivery block at header level to the sales order that gets created using idoc.

For that, I have set the blocks in the structure xvbak.

just before the call to va01 transaction is made.

xvbak-faksk = 'z1' " block set

xvbak-lifsk = 'z1' " block set

How do I set blocks at header level in the sales order in the function module (based on some conditions) . Which structure corresponds to the header level VBAK information. Please suggest some way.

Thanks & Regards,

Vishnu Priya.

3 REPLIES 3
Read only

Former Member
0 Likes
503

Message continued..

setting the blocks in the structure xvbak, as shown in the below two lines is not working

xvbak-lifsk = 'z1'.

xvbak-faksk = 'z1'.

please suggest how to modify the sales order header level information

Read only

Former Member
0 Likes
503

Priya,

The function module that you are using finally goes and creates the sales orders right? So, if you are modifying the data of XVBAK (which pertains to the header data of the sales order), that should reflect in the sales order.

What is the issue you are facing and where exactly are you doing these changes?

Regards,

Ravi

Read only

Former Member
0 Likes
503

If this is the reason why you copied the function module, did you first explore the option of using the user exits in the standard function? There are some user exits even in standard sales order create transaction where you can insert some code that says if the source is EDI and some other criteria is met, then set the blocks.