2008 Jul 09 8:46 AM
Hi friends,
I have to fields &J_1IEXCDTL-MRK_PKG(10)& &J_1IEXCDTL-NOS_ON_PKG(10)& in modified script for which I have put texts maintained in tcode VL02N dynamically.
How can I achieve this thru subroutine pool program and where I have write PERFORM statement in script before text element or after?
Kindly help....
Thanks in advance.
Hi,
Pls provide sample code how to write this in subroutine pool program.........
2008 Jul 09 8:54 AM
hiiii
in script you call subroutine before text element
use ...
perform (subroutine-name) IN PROGRAM (subroutine-pool name).
for calling subroutine from subrotine pool.
regards
twinkal
2008 Jul 09 9:15 AM
Hi,
Pls provide sample code how to write this in subroutine pool program.........
2008 Jul 09 9:54 AM
2008 Jul 09 10:08 AM
Hi Hosmath,
In order to call a subroutine from a sapscript, you could define some calling code in sapscript as follow:
PERFORM &form_name& IN PROGRAM &zprogram_name&
using &J_1IEXCDTL-MRK_PKG&
using &J_1IEXCDTL-NOS_ON_PKG&
changing &xresult&
endperform
Whereas in the pool program itself, you could define any formula, calculation or conditions required, for example as follow:
Form &form_name& TABLES invar1 structure itcsy
outvar structure itcsy.
== read itab index 1, with field invar1-value as the first parameter passed from the sapscript value == *
== read itab index 2, with field invar1-value as the second parameter passed from the sapscript value == *
== for the result, you could modify it into the outvar itab == *
endForm.
Hope it could helps.
Cheers,
FNR
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |