cancel
Showing results for 
Search instead for 
Did you mean: 

how to wirte code in form layout

Former Member
0 Kudos

hello experts!!!

i want to write some code in form layout ....(purchase order)

i mean address details,compant tax details, po ....etc

how to wirte code pls help me anybody

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

If you have driver program in control modify the driver program, if driver program and display address details,compant tax details, po ....etc

if you don't have driver program in your control call external sub-routines and get this values...

Example:

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,

in scripts you cannot write the code like smartforms

but we can do with the help of Subroutines,....

perform formname in program zprog

using var1

changing var2

endperform

in the se38 create the zprog with subroutine type

write the code to get the var2 from var1...

have a sample prog

FORM formname TABLES INPUT STRUCTURE ITCSY

OUTPUT STRUCTURE ITCSY.

here itcsy will have the var1 value and blank value for var2.

wirte some code to get the value of var2

and push it in output.....

endform.

in the script print that var2

&var2&

regards,

Venkatesh