cancel
Showing results for 
Search instead for 
Did you mean: 

How to put data into box ???

Former Member
0 Kudos

Thanks a lot everybody,

I have a new problem about box.

If I want to put data into box which I draw, how to put???

Please , give me a example about this.

Note:

For example, I have a table 2 rows 3 colmns.

I want to put exactly a variable data into position row 1 column 1, row 1 column 2, ...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If it is a table under it it has 3 nodes they are

header

main

footer.

you can insert a line in the main area as follows.

right click on the main area -> create -> table line

in that genernall attributes tab select the line name in the drop box.

after that you can get the nodes equal to the no of columns in your line

if you have 1 line and 4 columns in your table if you need to insert the data in to the 1 line and 2 column

in the second node right click on the second node and go with create -> text

in the text you can find the pencil mark click on that and you can go to the text editor in that provide your field name as

&field name&

If it is a templete

right click on the templete

go with create -> text

in the text you can find the pencil mark click on that and you can go to the text editor in that provide your field name as

&field name&

in the output options you can find two columns like line and column give the line no as 1 and column no as 2

you can insert any no of text elements as above.

Thanks,

NN.

Former Member
0 Kudos

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& .

Refer This:

http://pijush.wordpress.com/2007/05/08/to-print-the-total-in-a-sapscript/

Regards,

Shiva