cancel
Showing results for 
Search instead for 
Did you mean: 

Design forms

Former Member
0 Kudos

hii,

iwant a script program with steps and code i.e

1. designing form and code for tht stepwise.

2. driver program tht form with all steps.

regards

rahul

Title was edited by:

Alvaro Tejada Galindo

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

Go through this <a href="http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp">link</a> .

close the thread once your question is answered.

Regards,

Sairam

Former Member
0 Kudos

Hi Rahul,

Check out this for Sap Script..

Check out the links for SCRIPTS

http://wiki.ittoolbox.com/index.php/Sap_script#7.6.7.09Space_Compression

http://sappoint.com/abap/

http://www.henrikfrank.dk/abapuk.html

http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf

http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf

http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf

http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf

http://www.sap-img.com/sapscripts.htm

http://sappoint.com/abap/

http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm

go to se71->first u create the form.

there from PAGES AND WINDOWS OPTION , PLACE THE CONTROL ON MAIN WINDOW->EDIT->TEXT ELMENTS.

GOTO->CHANGE EDITOR

THERE GIVE FOLLOWING.

/E ELE1

  • &ITAB-VBELN&

  • &ITAB-ERDAT&

  • &ITAB-NETWR&.

F3->SAVE AND ACTIVATE

AND IN THE PRINT PROGRAM

EXECUTE THE FOLLOWING CODE

REPORT ZUSC.

tables:vbak.

parametrs:ordno for vbak-vbeln.

data:begin of itab occurs 0,

vbeln like vbak-vbeln,

erdat like vbak-erdat,

netwr like vbak-netwr,

end of itab.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

FORM = 'form name '

LANGUAGE = SY-LANGU.

select vbeln erdat netwr from vbak into table itab where vben = ordno.

loop at itab.

CALL FUNCTION 'START_FORM'

EXPORTING

FORM = ' ' "GIVE U R FORM NAME ,LANGUAGE,START PAGE

LANGUAGE = ' '

STARTPAGE = ' '.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'ele1 ' (this one u have to give in mainwindow->edit->text elements)

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'ELE1 '

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'.

CALL FUNCTION 'END_FORM'.

ENDLOOP.

CALL FUNCTION 'CLOSE_FORM'.

save,activate and execute

http://sap-img.com/sapscripts.htm

http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp

I think it will useful for u.

<b>Reward points if useful.</b>