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

user exit help

Former Member
0 Likes
1,949

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,838

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

18 REPLIES 18
Read only

FredericGirod
Active Contributor
0 Likes
1,838

Hi,

could you provide the function or the user-exit instead of the include ?

Rgd

Frédéric

Read only

0 Likes
1,838

Hi frederic,

its customer function 001.

Hi vijay,

ill check it in cmod trans.

thanks guys..

Read only

0 Likes
1,838

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

Read only

0 Likes
1,838

thanks lokesh,

im trying to find out the enhancement name. couldnt get hold of it.

Read only

0 Likes
1,838

Hi Kiran,

I hope u missed the <b>append</b> statement after moving the data into segments.

Thanks

eswar

Read only

0 Likes
1,838

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

Read only

0 Likes
1,838

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

Read only

Former Member
0 Likes
1,838

Check whether the user-exit is activated. If it is not activated then add the user-exit to the project using CMOD transaction

Read only

Former Member
0 Likes
1,838

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

Read only

Former Member
0 Likes
1,839

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

Read only

0 Likes
1,838

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

Read only

0 Likes
1,838

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...

Read only

0 Likes
1,838

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

Read only

0 Likes
1,838

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

Read only

0 Likes
1,838

thanks to everybody ... i could get a solution for purchase order date field...

Read only

0 Likes
1,838

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

Read only

0 Likes
1,838

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.

Read only

Former Member
0 Likes
1,838

Please close the post and provide the solution here so that others can benefit.

Thanks,

Srinivas