‎2005 Dec 08 11:33 PM
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.
‎2005 Dec 08 11:52 PM
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
‎2005 Dec 09 3:04 AM
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.
‎2005 Dec 09 3:51 AM
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.