Skip to Content
avatar image
Former Member

pls respond me

hi ,

in script form i added one field is GROSS-WEIGHT from MARA table.

how to add this field in print program using itcsy structure

pls help me.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 14, 2007 at 10:33 AM

    Hello Tulasi,

    Do like this,

    IN the form insert these lines
    
    /: PERFORM GET_WEIGHT IN PROGRAM ZFORMS
    /:   USING &MARA-MATNR&
    /:   CHANGING &WEIGHT&
    /:   ENDPERFORM
    " In the report ZFORMS
    FORM GET_WEIGHT TABLES IN_PAR  STRUCTURE ITCSY
                                                  OUT_PAR STRUCTURE ITCSY.
    DATA: LV_MATNR TYPE MATNR,
              LR_MARA LIKE MARA.
     * Lesen Eingabeparameter
      READ TABLE IN_PAR WITH KEY 'MARA-MATNR'.
      CHECK SY-SUBRC = 0.
      LV_MATNR = IN_PAR-VALUE.
    SELECT SINGLE * FROM INTO LR_MARA WHERE MATNR EQ LV_MATNR.
    
          READ TABLE OUT_PAR WITH KEY NAME = 'WEIGHT'.
          IF SY-SUBRC EQ 0.
            OUT_PAR-VALUE = LR_MARA-WEIGHT.
            MODIFY OUT_PAR INDEX SY-TABIX.
          ENDIF
    ENDFORM.
    

    Hope this solve ur problem.

    Vasanth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 14, 2007 at 10:35 AM

    can u plz explain ur scenario?

    vijay

    Add comment
    10|10000 characters needed characters exceeded