cancel
Showing results for 
Search instead for 
Did you mean: 

help me for form

Former Member
0 Kudos

Hai experts,

Atleast provide me any sample programs u did...for mutilple line ite items display

Accepted Solutions (1)

Accepted Solutions (1)

former_member585060
Active Contributor
0 Kudos

Hi,


* Looping to print data
  LOOP AT it_vbap INTO wa_vbap.

* Items printing
    PERFORM writeform.

  ENDLOOP.


*&---------------------------------------------------------------------*
*&      Form  WRITEFORM
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM writeform.

  CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      element                  = 'ITEM'
      window                   = 'MAIN'
    EXCEPTIONS
      element                  = 1
      function                 = 2
      type                     = 3
      unopened                 = 4
      unstarted                = 5
      window                   = 6
      bad_pageformat_for_print = 7
      OTHERS                   = 8.

ENDFORM.                    "WRITEFORM

*&---------------------------------------------------------------------*
*&      Form  CLOSEFORM
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM closeform.

  CALL FUNCTION 'CLOSE_FORM' .

ENDFORM.                    "CLOSEFORM

Regards

Bala Krishna

Edited by: Bala Krishna on Aug 6, 2009 1:51 PM

Answers (1)

Answers (1)

former_member242255
Active Contributor
0 Kudos

you have to loop the table and do the sane process what ever you are doing for single line item,even if you have multiple line itmes.