on 04-22-2008 9:40 AM
Hi ,
I have designed one script and in that i have created a BOX .
In print the BOX is displaying . I want to pass some data ( some variable )into that BOX . How can i do that .
Regards
Sarmistha
Hi,
You can achive it by giving dynamically in SE71 screen.
eg:
ADDRESS
/: BOX FRAME '10' TW
/: ADDRESS
/: TITLE &ITAB-ANRED&
/: NAME &ITAB-NAME1&
/: STREET &ITAB-STRAS&
/: POBOX &ITAB-PFACH&
/: CITY &ITAB-ORT01&
/: POSTCODE &ITAB-PSTLZ&
/: COUNTRY &ITAB-LAND1&
/: REGION &ITAB-REGIO&
/: FROMCOUNTRY &ITAB-LAND1&
/: ENDADDRESS
FOOTER
/* footer
/: INCLUDE ZS_TEXT OBJECT TEXT ID ST LANGUAGE EN
/: BOX FRAME '10' TW
/: DEFINE &V_NAME1& = 'PRINT PROGRAM'
/: DEFINE &V_NAME2& = ' '
/: PERFORM SUB_NAME IN PROGRAM ZS_SCRIPT04
/: USING &V_NAME1&
/: CHANGING &V_NAME2&
/: ENDPERFORM
P2 &V_NAME2&
THIS IS <C1>&ITAB-KUNNR&</> INFORMATION
GRAPH1
/: BITMAP 'ENJOY' OBJECT GRAPHICS ID BMAP TYPE BCOL
MAIN
/* THIS IS CUSTOMER INFORMATION
/: BOX FRAME '10' TW
/: TOP
,,SALES DOCUMENT,,CREATION DATE,,DOCUMENT TYPE,,NETVALUE RATE
/: ENDTOP
Element ITEM DATA
/: BOX XPOS '16.0' CH WIDTH '0' CH HEIGHT '50.0' LN FRAME '10' TW
/: BOX XPOS '30.0' CH WIDTH '0' CH HEIGHT '50.0' LN FRAME '10' TW
/: BOX XPOS '44.0' CH WIDTH '0' CH HEIGHT '50.0' LN FRAME '10' TW
,,&ITAB-VBELN&,,&ITAB-ERDAT&,,&ITAB-AUART&,,&ITAB-NETWR&
Thanks and regards,
Sarada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for replying.
I have one doubt ..which is the textelemet for the below mentioed example . I thnk ADDRESS is the window name .
eg : ADDRESS
/: BOX FRAME '10' TW
/: ADDRESS
/: TITLE &ITAB-ANRED&
/: NAME &ITAB-NAME1&
/: STREET &ITAB-STRAS&
/: POBOX &ITAB-PFACH&
/: CITY &ITAB-ORT01&
/: POSTCODE &ITAB-PSTLZ&
/: COUNTRY &ITAB-LAND1&
/: REGION &ITAB-REGIO&
/: FROMCOUNTRY &ITAB-LAND1&
/: ENDADDRESS
regards
sarmistha
Still i am confused ...
i hav an internal table of the format .
types: begin of t_vbap,
posnr type posnr_va,
matnr type matnr,
arktx type arktx,
kwmeng type kwmeng,
vrkme type vrkme,
end of t_vbap.
data: it_vbap type standard table of t_vbap with header line.
i want to dislpa the data in the body of the main window in side a BOX .so i have craeted a text element named "BODY" and in side that i am passing the internal table fileds to dipalsy data .
now i want to pass these internal table fileds inside a BOX of that same textelement " BODY" which i am calling from the print programme.
can you please tell me some demo code for this ..
regards
sarmistha
Dont print your box inside main window
Put it in a separate window outside Main
sow
for eg
Window BOX
BOX YPOS '0.0' CM WIDTH '14.4' CM HEIGHT 10.7' CM FRAME 0 TW INTENSITY 10
try and keep the x and y positions of the box a little less than the Main Window
now you can loop at your BODY elemet to print the line items
inside main window
Thanks,
I did as per u said ....created one new window with name "BOX" there i wrote the command for BOX like this :/: BOX YPOS '0.0' CM WIDTH '14.4' CM HEIGHT 10.7' CM FRAME 0 TW INTENSITY 1
the window i make smaller than the main window also ..
in main window in the text element "BODY" i paased the intrnal table filed.
when i execited the print program only the internal table data is being displayed .box is not displayed in print .
regards
sarmistha
I am only calling the main window in the driven programme , not the BOX window where i hav written command for creating box.
One thing if i hav to call the BOX window in the driven programme ,then as there is no text element in the BOX window so how can i call that window in the driver programme.
regards
sarmisatha
The Box and your data are indpendent of each other.
Once you print the box, You have to align your data accordingly so that
they appear inside the box.
A good way is to have your box the size of the Main window, so everytime the data overflows into the next page that is where the box ends too
The Box shoudl be outside Main Window
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.