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 problem again:-(

Former Member
0 Likes
640

hi! all...

i used the foll. code to fill in the SH party city in komk for sales order creation.

IN USEREXIT_PRICING_PREPARE_TKOMK, the statement was

SELECT SINGLE ORT01 INTO TKOMK-ZZORT01

FROM KNA1 WHERE

KUNNR = TKOMK-KUNWE.

KUNWE IS A STANDARD FIELD IN KOMK AND I THINK IT GETS FILLED.

BUT DURING SALES ORDER CREATION THE CONDITION RCORDS DOTN SHOW UP. THE SYS, GIVES THE MESSAGE 109 - CONDITIONS RECORDS MISSING.

ALL THE CONFIG. WENT WELL, TRANSPORTS TO TESTING WENT WELL.

DONT KNOW WHERE THE PROBLEM IS.

MIGHT IT BE BEACUSE I AM FILLING IN KOMK AND NOT IN KOMP.

IS THERE ANYTHING THAT U CANT DO WITH KOMK LIKE THIS? ALL I KNOW IS KOMK IS HEADER and hence SAME FOR ALL THE ITEMS.

ALSO IF ITS GONNA WORK IF I SELECT IT FROM vbpa AND THEN FROM KNA1 INSTEAD OF KOMK?

PLEASE HELP ME OUT. I AM CLUELESS.

THANK YOU.

-SRI.

3 REPLIES 3
Read only

Former Member
0 Likes
563

Sri,

Can't you try this in USEREXIT_SAVE_DOCUMENT_PREPARE?

You will still have access to TKOMK and all.

Also, you could try

IF tkomk-kunwe NE space.

do this code

ELSE.

get info from elsewhere like maybe XVBPA.

ENDIF.

Based on config, there can be many scenarios as to what data will be filled.

At USEREXIT_SAVE_DOCUMENT_PREPARE, you should pretty much have all the data available.

Hope it helps.

Regards,

-Ramesh

Read only

Former Member
0 Likes
563

If you have header line condition,then you don't have to populate KOMP. Did you make sure that the relevant condition record actually exist.

In sales order, you can see condition analysis from pricing screen. It will show you exactly how and which order, SAP is processing the pricing conditions, what values are being passed and what is returning from there.

Read only

0 Likes
563

i've done it all.

i have 4 tables for that ctype.

i have condition records for all 4.

it only gets it from the last one.

it skips the other 3.

in analysis u have 3 columns right??

in the 'value in doc.' column i get all the correct values geting pulled into sord.fo all 4 ctables.

i dont know why the value in the structure does not get matched with that of condition records for the 1st 3 ctables?

give me ur inputs please.

thank you.

-sri.