cancel
Showing results for 
Search instead for 
Did you mean: 

Printing currency fields in SMARTFORM

Former Member
0 Kudos

TABLES : LFC1.

DATA : BEGIN OF ITAB OCCURS 0 WITH HEADER LINE,

LIFNR LIKE LFC1-LIFNR,

UMSAV LIKE LFC1-UMSAV, "currency field

END OF ITAB.

SELECT LIFNR UMSAV FORM LFC1 INTO TABLE ITAB.

-


  • Using the above codes, How to display the field itab-umsav in smartform without sign(+ or -) symbol

  • How to display the contents of ITAB in SMARTFORM using rows and columns [Eg: PO format]

  • How to do SUBTOTAL

-


Regards,

Ajith Rai

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ajith,

Refer the standard smartform SF_SUBTOTALS and SF_TOTALS.

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

Display the Currency using &FIELD(S)& to omit leading sign.

Take a Table node in that create required number of rows and columns.

Give headings of columns in Header Node.

Display line items values in Main area. In main area take one program lines

node in that calculate subtotal Otherwise use End of sort and End of begin events

of table.

Display Subtotal value in Footer Node.

Former Member
0 Kudos

Hello Ajith,

  • Need to pass your itab-umsav as shown in the line editor screen.

&ITAB-UMSAV(S)& i.e &symbol(S)& Omit Leading Sign.

  • Need to use LOOP-> and within loop use TEMPLATES to display the values in ITAB.

and can give bordes to the templates if needed.

  • just need to keep a extra window within the loop along with template.

LOOP

-


TEMPLATE

TEXT WINDOW on some condition(need to maintain this in condition tab of the text window).

display the SUBtotal (Hope you can add up some logic).

-


Hope the above discussion was helpful. In case of problem please revert back.

Cheers,

Suvendu