cancel
Showing results for 
Search instead for 
Did you mean: 

PRINT A QUANTITY FIELD ON A SMARTFORM :((((

Former Member
0 Kudos

Hi gurus,

TABLE VBAP

KWMENG QUAN 15 3 - Cumulative order quantity in sales units.

POSNR | MATNR | KWMENG

I have this field (KWMENG) which i want to print it on a smartform and i can't :(. On my application program i have an internal table TB_VBAP, which has this three fields ( posnr, matnr, kwmeng ). The first two ( posnr and matnr ) are printed on the SMARTFORM, but KWMENG is not. Can someone pls give me an idea?

Thanks all. Alex

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos

You need the unit of measure (VBAP-VRKME)

Regards

Former Member
0 Kudos

Raymond, i have KMEIN, but still doesn;t solve my problem, so what do i have the unit of measurement?

What shall i do to it???

Rahul, i can't find this section. I have an SAP 6.0.

Any suggestions?

Edited by: Alex Marius on Mar 19, 2008 1:34 PM

raymond_giuseppi
Active Contributor
0 Kudos

You may use a

WRITE VBAP-KWMENG UNIT VBAP-VRKME TO CHARX.

Look also at this thread

Regards

Former Member
0 Kudos

Hei guys, i've solved the problem:

1. I declared a variable VC_KWMENG at Global Settings/Global Definitions/Global data:

VC_KWMENG TYPE CHAR19 ( depends on your output variable )

2. Before the output of the text i've created a PROGRAM LINES node with this statement:

In INPUT PARAMETERS: ST_VBAP and VC_KWMENG

In OUTPUT PARAMETERS: ST_VBAP and VC_KWMENG.

and as code:

WRITE st_vbap-kwmeng UNIT st_vbap-vrkme TO VC_KWMENG.

3. In my text node, i've put &VC_KWMENG&.

Worked fine, thanks all you guys.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Place a break point within the main window inside the program lines and check the field inside the work area

regards

Shiva

rahulkavuri
Active Contributor
0 Kudos

hi

Two cases arise..

Have you defined the Quantity field KWMENG in the Currency/Quantity fields section in Global definitons of Smartforms...

or

I think the page window size was not enough for the program to print the Quantity field, change the character format you use for this field