2007 Jan 16 4:15 PM
Hi,
i'm using standard print programm (SAPM07DR) to print material documents (MIGO).
I allready have defined my element
/E WE3KOPF
/E WE3KOPF1
/E WE3KOPF1
and copy/paste text from/E WE3KOPF
intoi don't like that, because in case of changings i have to change twice !!!
So i search for a function which allows me to link to
/E WE3KOPF
like:-
-
/E WE3KOPF
/E WE3KOPF1
/: link to WE3KOPF <---- ???
does anybody know about such a function?
(i don't want to change/copy standard print program!)
kind regards
Jörg S.
Message was edited by: Jörg S. (i like it bold)
Jörg Sauterleute
Hi Jörg,
Hmm. You could try to write an external form and let this form trigger the defined element.
At element WE3KOPF1 add the command lines
/: PERFORM LINK_ELEMENT IN PROGRAM Z_SAPSCRIPT_FORMS
/: USING 'WE3KOPF1'
/: ENDPERFORM
Then create an external formroutine with a function call
CALL FUNCTION 'WRITE_FORM'
...
elem = -value
...
Just an idea - don't know it works. I hope you have minimal experience creating external form for sapscript. If not - it's well-documented at
Calling ABAP Subroutines: PERFORM
Hope it's worth a try.
Regards,
Clemens
2007 Jan 16 4:35 PM
Hi,
Try this..
Use the PERFORM STATEMENT in the text element WE3KOPF1..
/E WE3KOPF1
SAPSCRIPT FORM CHANGES
-
/: PERFORM DISPLAY_WE3KOPF1 IN PROGRAM ZREPORT1
............
/: ENDPERFORM.
Report program
-
Create a new report program and have that subroutine here.
FORM DISPLAY_WE3KOPF1 TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
CALL THE FUNCTION WRITE_FORM WITH THE TEXT ELEMENT.
ENDFORM.
Thanks,
Naren
2007 Jan 17 3:17 PM
Hi Naren,
in Function "WRITE_FORM" there is a certain check:
+function write_form.
data:
create type i,
etype like itcca-tdetype.
check co_perform-active <> true.+ <--- !!! (function was left at this point)
subrc = 0
Looks like SAP avoids your solution ...
kind regards
Jörg
2007 Jan 16 4:50 PM
Hi Jörg,
Hmm. You could try to write an external form and let this form trigger the defined element.
At element WE3KOPF1 add the command lines
/: PERFORM LINK_ELEMENT IN PROGRAM Z_SAPSCRIPT_FORMS
/: USING 'WE3KOPF1'
/: ENDPERFORM
Then create an external formroutine with a function call
CALL FUNCTION 'WRITE_FORM'
...
elem = -value
...
Just an idea - don't know it works. I hope you have minimal experience creating external form for sapscript. If not - it's well-documented at
Calling ABAP Subroutines: PERFORM
Hope it's worth a try.
Regards,
Clemens
2007 Jan 17 3:09 PM
2007 Jan 17 4:41 PM
Hi Jörg,
sorry and thank you for trying.
No glory gained (:
Regards,
Clemens
2009 Nov 11 9:01 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |