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: 

SAP SCript

Former Member
0 Kudos

I need to change a layout of script,i just know its program name,plz tell me how to reach to form,so that i can do the change.

plz tell its urgent.

regards

8 REPLIES 8

Former Member
0 Kudos

hi

use table

TNAPR

here u give ur program nae and then F8 u will get all the info u need

hope it solved ur problem

Cheers

Snehi

Edited by: snehi chouhan on Jul 31, 2008 1:13 PM

Former Member
0 Kudos

search for start_form in the report.

there u can find the form name.

this will help u.

Regards

Anbu

Former Member
0 Kudos

hi,

Check Your Program.

In START_FORM method you will find the name of the SAP SCRIPT form name.

Regards

Sumit Agarwal

Former Member
0 Kudos

hi,

In the function module 'OPEN MODULE', YOU WILL GET THE NAME OF THE FORM IN FORM field

CALL FUNCTION 'OPEN_FORM'

EXPORTING

  • APPLICATION = 'TX'

  • ARCHIVE_INDEX =

  • ARCHIVE_PARAMS =

  • DEVICE = 'PRINTER'

  • DIALOG = 'X'

FORM = 'z_FORM1'

  • LANGUAGE = SY-LANGU

  • OPTIONS =

  • MAIL_SENDER =

  • MAIL_RECIPIENT =

  • MAIL_APPL_OBJECT =

  • RAW_DATA_INTERFACE = '*'

  • IMPORTING

  • LANGUAGE =

  • NEW_ARCHIVE_PARAMS =

  • RESULT =

EXCEPTIONS

CANCELED = 1

DEVICE = 2

FORM = 3

OPTIONS = 4

UNCLOSED = 5

MAIL_OPTIONS = 6

ARCHIVE_ERROR = 7

INVALID_FAX_NUMBER = 8

MORE_PARAMS_NEEDED_IN_BATCH = 9

SPOOL_ERROR = 10

CODEPAGE = 11

OTHERS = 12

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Then go to SE71 and put the name of the form.

You will get the layout.

Regards,

Anirban

former_member181995
Active Contributor
0 Kudos

Vipin,

run RSTXDBUG in se38 and give printout you will come in debugger here you can see the form name exactly which is getting called.

Amit.

Former Member
0 Kudos

Hi,

FORM print_data .

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = 'PRINTER'

dialog = ' '

form = 'ZMM_INVENTORY'

language = sy-langu

  • OPTIONS =

EXCEPTIONS

canceled = 1

device = 2

form = 3

OPTIONS = 4

unclosed = 5

mail_options = 6

archive_error = 7

invalid_fax_number = 8

more_params_needed_in_batch = 9

spool_error = 10

codepage = 11

OTHERS = 12.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

you find out form name of SAPSCRIPTS from OPEN_FORM or

START_FORM

Regards

bhupal

0 Kudos

there is an test in my script at the below:RAW Material

than i want to put few blank line below it.

please tell how to do so.

Former Member
0 Kudos

Hi Vipin.

I would like to suggest a reference,

[SDN - Reference - How to do changes in Layouts settings and SAP scripts to meet requirment?|;

Hope that's usefull.

Good Luck & Regards.

Harsh Dave