cancel
Showing results for 
Search instead for 
Did you mean: 

MEDRUCK SAP Script Form

Former Member
0 Kudos

Hello All,

I am new to sapscripts and I would be greatly helpful if someone can give me the answers for the following questions:

How the same Print program can be used for two different layouts?

How will the program determine which Layout to use?

How does the program determine which elements should be populated?

Thanks,

Suji

Message was edited by:

Subashini Bhaskar rao

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Subashini,

Regarding which program laoyut will use is done through nace transaction

1)Select Application Type(Billing, Purchase Order..any of those) .

2)Click on Output types button.

3)Go to change mode by pressing Ctrl+F4.

4)Select one output type which already exists

5)Do CopyAs(F6)

6)Give your output type against OutputType field.

7)Under General data Tab, Give Program and Form routine and Save the data.

Generally assigning the layout is done by the functional consultants,We abap consultants should not worry about it.

About your thjird question-:

In the driver(or print prgram) we use write _form call function

In this function call you need to mention the window name you need to process.

Then you need to mention the elements which you have declared in that window.

Only those windows & elements you are mentioning in the function will get printed in the finally out put irrespective of the actual no of windows and elements one has declrd in the original sap script.

Former Member
0 Kudos

Hi Subashini,

Go through this link. You can find a lot of things about scripts.

Reward points if helpful.

Thanks

Aneesh.