2009 Nov 10 1:46 PM
Hi Gurus,
My requirement is to add a new segment in ORDERS05 and populate the values int he Zsegment based on the output type selected.
I am using same user-exit to populate but i am not sure how to find the output type which user selected.
How to find the Output type in FM IDOC_OUTPUT_ORDERS?
Thanks GIRI
2009 Nov 11 6:56 PM
Hi Giri,
In IDOC_OUTPUT_ORDERS there is importing parameter OBJECT, refer to the field KSCHL for output type.
In user exits in that FM DBOBJECT field as import parameters, so write as DBOBJECT-KSCHL in exit, in other processing FM's u can also try OBJECT-KSCHL as object defined as global in that FM.
If problem solves, close the thread.
Regards
Syed A
2009 Nov 10 2:13 PM
2009 Nov 10 2:56 PM
Hi,
there is no field for Output type selected in CONTROL_RECORD_IN, or there is not configured properly in my system... do u know which field in CONTROL_RECORD_IN?
GIRI
2009 Nov 10 3:02 PM
Hi,
You can check the o/p type in partner profile also.
In outbound message type check in message control tab.
Regards,
Dhan
2009 Nov 10 8:31 PM
2009 Nov 10 9:19 PM
Hi Giri,
There is no direct provision to Read the Output type from the function module. But you can do this with the following Options.
1) Find user Exit in PO Transaction while issuing the output. Export the output type from there and import it in your IDOC function module and then do you logic.
2) Since you are going to Specify the Basic type and Extension in the partner profile you no need to worry about other partners. This extension will not trigger to the other partner and other output types.
Let me know if you need any further details.
Thanks,
Venkat
2009 Nov 11 12:53 PM
Look in Table EDP12
below select statement should fetch you output type.
SELECT kschl
INTO lv_kschl
FROM edp12
UP TO 1 ROWS
WHERE mestyp = 'ORDERS'
AND rcvprn = control_record_in-rcvprn
AND rcvprt = control_record_in-rcvprt
AND rcvpfc = control_record_in-rcvpfc .
ENDSELECT.
2009 Nov 11 1:14 PM
2009 Nov 11 6:56 PM
Hi Giri,
In IDOC_OUTPUT_ORDERS there is importing parameter OBJECT, refer to the field KSCHL for output type.
In user exits in that FM DBOBJECT field as import parameters, so write as DBOBJECT-KSCHL in exit, in other processing FM's u can also try OBJECT-KSCHL as object defined as global in that FM.
If problem solves, close the thread.
Regards
Syed A
2009 Nov 11 7:03 PM
thanks syed, this is what i am looking for... no additional coding required..
thanks pawan and saravanan.
problem solved