Application Development 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: 

Copy SO field to PO

Former Member
0 Kudos
120

Hi all,

We have a requirement to copy the incoterms from sales order during PO creation. I am using enhancement MM06E005. I am looking at exits EXIT_SAPMM06E_008 and EXIT_SAPMM06E_012. In debugging mode, when i change ekko manually, the screen is displaying the value i passed but from the exit itself there is no parameter to pass/change this value (EKKO-INCO2). Upon saving EXIT_SAPMM06E_012 gets triggered. Just the same don't know which parameter to pass to change this field.

Any idea how to get this requirement done?

Thanks.

Regards,

nEnE

3 REPLIES 3

Former Member
0 Kudos
80

use fields symbols

this following code should be inside your exit.

field-symbols <fs>.

assign ( ' (SAPMM06E)EKKO-INCO2' ) to <fs>.

<fs> = 'Your Inco term'.

Former Member
0 Kudos
80

Thanks but there's no available parameter to pass/change EKKO. I used ME_PROCESS_PO_CUST-PROCESS_HEADER to set the incoterms. I have 2 more fields to set, but it is in the header text. Is there any available method we can use for this?

Former Member
0 Kudos
80

Resolved using

CALL METHOD im_header->if_longtexts_mm~set_text
          EXPORTING
            im_tdid      = tdid
            im_textlines = lt_im_textlines.

Closing this thread.