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

IDOC triggerred by which Output type?

Former Member
0 Likes
2,559

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,072

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

9 REPLIES 9
Read only

Pawan_Kesari
Active Contributor
0 Likes
2,072

Look in the importing parameter CONTROL_RECORD_IN

Read only

0 Likes
2,072

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

Read only

Former Member
0 Likes
2,072

Hi,

You can check the o/p type in partner profile also.

In outbound message type check in message control tab.

Regards,

Dhan

Read only

0 Likes
2,072

I need programatically, in IDOC_OUTPUT_ORDERS

Read only

0 Likes
2,072

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

Read only

Pawan_Kesari
Active Contributor
0 Likes
2,072

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.

Read only

0 Likes
2,072

Look at table TBD52, give the FM name get the process code!

Read only

Former Member
0 Likes
2,073

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

Read only

0 Likes
2,072

thanks syed, this is what i am looking for... no additional coding required..

thanks pawan and saravanan.

problem solved