cancel
Showing results for 
Search instead for 
Did you mean: 

PO script help

Former Member
0 Kudos

Hello Experts,

We have a custom SAP script for PO copied from MEDRUCK and modified.

This single PO script is used for many sales org and division for many years.

Now, I have to add Approved Manufacturers Part List and AML data in the custom script which is part of standard script coz for the project I am working on, there is a functionality using AML and AMPL. Can anybody suggest me how to copy from standard PO to custom PO script? I am new to SAP script. Any examples are helpful.

Thanks

Ricky

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196280
Active Contributor
0 Kudos

GOTO SE71, from menu... utilities--> copy from client

Give,

form name : MEDRUCK

Source client :000

Target form Z_MEDRUCK

Execute

Give your package name and save.

Note:If any question related to this you can ask me.. if related to something else open new thread with clear subject line .. so it helps others to give you valuable info.

CLose the thread if your question is answered. Reward points to all useful answers.

Regards,

SaiRam

Former Member
0 Kudos

This is not what I was looking for. I know how to copy the form to custom form.

I want to know how to copy the elements 'ITEM_LIST_MPNHEADER' and 'ITEM_LIST_MPNLISTLINE' with the variables from MEDRUCK to ZMEDRUCK and then write the logic in the driver program to populate the values for the V_HTNM-MFRPN, V_HTNM-ERMNR, V_HTNM-MNFR. These are manufacturer related details available in the standard form MEDRUCK.

Again, I am new to SAP script. A detailed explanation with some examples expecting.

Thanks

Ricky

former_member196280
Active Contributor
0 Kudos

You can always get the values that are not in your scope, i.e if driver program is not in your control by calling sub-routines inside your scripts.

Go through this example

Ex.

/: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>

/:USING &<field name>&

/:CHANGING &<field name1&

/:ENDPERFORM

Then create subroutine pool program and you have to write the code.

FORM ><subroutine name> tables int_cond structure itcsy

outt_cond structure itcsy.

data : value(20), value1(20). "do your own declarations

Read int_cond table index 1.

value = int_cond-value.

value1 = value1 + value.

Read outt_cond table index 1.

outt_cond-value = value1.

Modify outt_cond index 1.

ENDFORM.

Just rough idea given above.

Regards,

Sairam

Former Member
0 Kudos

Hi Sai,

thanks for the reply. I hve two changing variables. In this case, how can I handle the form routine?

thanks