Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Need help!

Tis is my write statment. And I want that statment to be displayed in alv grid. How I will do that.

FORM summensegment1.

IF bwbst IS INITIAL.

PERFORM next_row USING 3 ' '.

WRITE: 2 text-007, 26 datum-low, "Bestand zum

50 bestand1-anfmenge " Anfangsbestand

UNIT bestand1-meins,

74 bestand1-meins. " Mengeneinheit

PERFORM next_row USING 3 ' '.

WRITE: 6 text-005, 34 bestand1-soll "Summe der Zugänge

UNIT bestand1-meins,

57 bestand1-meins.

PERFORM next_row USING 3 ' '.

WRITE: 6 text-006, 34 bestand1-haben "Summe der Abgänge

UNIT bestand1-meins,

57 bestand1-meins.

PERFORM next_row USING 3 ' '.

WRITE: 2 text-007, 26 datum-high, "Bestand zum

50 bestand1-endmenge " Endbestand

UNIT bestand1-meins,

74 bestand1-meins.

ELSEIF NOT bwbst IS INITIAL.

PERFORM next_row USING 3 ' '.

WRITE: 2 text-008, 22 datum-low, "Bestand/Wert zum ...

36 bestand1-anfmenge "Anfangsbestand

UNIT bestand1-meins,

60 bestand1-meins, "Mengeneinheit

68 bestand1-anfwert "Anfangswert

CURRENCY bestand1-waers,

87 bestand1-waers.

PERFORM next_row USING 3 ' '.

WRITE: 6 text-030, 33 bestand1-soll "Summe/Wert der Zugänge

UNIT bestand1-meins,

56 bestand1-meins,

63 bestand1-sollwert

CURRENCY bestand1-waers,

82 bestand1-waers.

PERFORM next_row USING 3 ' '.

WRITE: 6 text-031, 33 bestand1-haben "Summe/Wert der Abgänge

UNIT bestand1-meins,

56 bestand1-meins,

63 bestand1-habenwert

CURRENCY bestand1-waers,

82 bestand1-waers.

PERFORM next_row USING 3 ' '.

WRITE: 2 text-008, 22 datum-high,

36 bestand1-endmenge "Endbestand

UNIT bestand1-meins,

60 bestand1-meins,

68 bestand1-endwert "Endwert

CURRENCY bestand1-waers,

87 bestand1-waers.

ENDIF.

ENDFORM. " SUMMENSEGMENT1

Regards,

Abhay.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question