cancel
Showing results for 
Search instead for 
Did you mean: 

sap script

Former Member
0 Kudos

hi all,

I am working on the the T-code J1INCERT. I need to add a couple of fields like Bill No and Doc no in the script form J_!IEWT_CERT. Can anyone suggest how do i continue with the same?

thanks

nayan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Just check whether the fields are avilable from the transaction, if the field values are avilable then you print directly .


/: &bill_no&,,&DOC_No&   " I am giving the sample fields, give the correct fields

If these fields are not coming from the Transaction then you need to use the PERFROM statment to get these fields then print the values

Regards

Sudheer

Answers (1)

Answers (1)

former_member196280
Active Contributor
0 Kudos

if the fields does ont exist with the print program you can fetch by using external sub-routine

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