‎2006 Mar 13 12:28 PM
HI all,
I couldnt populate the purchase order date (vbkd-bstdk) into the screen va01 when uploading the orders data. im using orders05. i think only option is of using an userexit. Ive found out the suitable include to include the code. If im not wrong the include is ZXVEDU03 (cust func 001).
In this include ive included the code.
data : w_vbkd like dxhvbkd.
case segment-segnam.
when 'E1EDK03'.
move segment-sdata to e1edk03.
if e1edk03-iddat = '022'.
move e1edk03-datum to w_vbkd-bstdk.
move w_vbkd to dxhvbkd.
endif.
Ive done this and i couldnt see the field in the order created. Is there something else i should do to populate the field onto the screen. could somebody help me with this.
thanks,
Kiran
‎2006 Mar 13 1:01 PM
Kiran,
First off try Enhancement name VEDA0001.
If your code still doesn't work you have two other options:
1. Within the user exit try populating XVBAK-BSTDK.
2. If you are passing in the purshase order number on segment E1EDK02, you can also put the purchase order date on this segment and you will not need the user exit.
Chris
‎2006 Mar 13 12:32 PM
Hi,
could you provide the function or the user-exit instead of the include ?
Rgd
Frédéric
‎2006 Mar 13 12:36 PM
Hi frederic,
its customer function 001.
Hi vijay,
ill check it in cmod trans.
thanks guys..
‎2006 Mar 13 12:44 PM
Hi Kiran,
1). Find the enhancement name for the exit in transaction SMOD.
2). Create a project for the enhancement in Transaction CMOD.
3). Activate the project and then write your code in the customer function 001.
Hope it helps...
Lokesh
‎2006 Mar 13 12:49 PM
thanks lokesh,
im trying to find out the enhancement name. couldnt get hold of it.
‎2006 Mar 13 12:54 PM
Hi Kiran,
I hope u missed the <b>append</b> statement after moving the data into segments.
Thanks
eswar
‎2006 Mar 13 12:57 PM
Hi Kiran ,
Goto SPRO transaction -> Browse through the application hierarchy to the Sales Order -> There will be a node for User Exits. Click on that node and you will get a list of all the User exits for VA01 with documentation. You will also get the enhancement name.
Hope it helps...
Lokesh
pls. reward appropriate points
‎2006 Mar 13 12:58 PM
hi kiran,
could u give the transaction code ...is it s001..
u can use cmod-- for assigning a exit
use smod-- for details about the exit..
transaction s001 doesn't have any exits..so try for some Function mods..
regards
ashok
‎2006 Mar 13 12:33 PM
Check whether the user-exit is activated. If it is not activated then add the user-exit to the project using CMOD transaction
‎2006 Mar 13 1:00 PM
Hello Kiran,
can u try the following...
case segment-segnam.
when 'E1EDK03'.
move segment-sdata to e1edk03.
if e1edk03-iddat = '022'.
PERFORM IDOC_MOVE(LVEDAF2Y) USING
E1EDK03-DATUM WLDAT D_FLAG_K-UER2.
endif.
I think this should work.
Abhijit
‎2006 Mar 13 1:01 PM
Kiran,
First off try Enhancement name VEDA0001.
If your code still doesn't work you have two other options:
1. Within the user exit try populating XVBAK-BSTDK.
2. If you are passing in the purshase order number on segment E1EDK02, you can also put the purchase order date on this segment and you will not need the user exit.
Chris
‎2006 Mar 13 1:09 PM
Hi abhijit,
im gonna just try with ur code and c if it works..
hi chris,
when im using the enhancement veda001 its showing me its already associated with veda001.
thanks a lot guys
‎2006 Mar 13 1:24 PM
Chris,
ive used segment e1edk02 to populate the customer purchase order date and it worked mate. Thanks a lot for that. Is there any chance that i can use any segment to pouplate tax classification field (vbak-taxk1 ). as of now thats the only field i have to populate..
anyways thanks a lot...
‎2006 Mar 13 1:30 PM
I just did a quick search on the IDOC_INPUT_ORDERS FM and the only thing I could find related to taxes are segments K04 and P04. Unfortunately I do not think that IDOC_INPUT_ORDERS does anything with these segments.
Chris
‎2006 Mar 13 1:38 PM
Chris,
yes i went thru idoc_input _orders and its not doing anything with these segments. Is an user exit the only option for that or is there any other way to deal with it mate.
Thanks
‎2006 Mar 13 1:58 PM
thanks to everybody ... i could get a solution for purchase order date field...
‎2006 Mar 13 2:19 PM
I think you are going to have to deal with it through the User exit. I would be careful with this though. I think that SAP tries to determine most of tax related things automatically based on customer master data.
Chris
‎2006 Mar 13 2:32 PM
yeah i will talk to my tl before coming to any conclusions..
Solution is given by chris. Date segemnt(e1edk03) with qualifier 22 is not working with idoc_input_orders. so better to use e1edk02 with related qualifiers.
‎2006 Mar 13 2:01 PM
Please close the post and provide the solution here so that others can benefit.
Thanks,
Srinivas