Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Routing Changes:

add field for size in table given below:


ZCREAT_BOM
ZCREAT_ROUT
you can see the example of size_0X.

after that need to change the code on screen 100


on screen add the column in the table of size as size_0X
after that go to module hide line no 9 on screen 100
line no 3396 add code
ELSEIF IT_SIZECHK-SIZE = '0X'.
        IT_SIZECHK1-SIZE_0X = '1'.

line no 5579

IF IT_SIZECHK1-SIZE_0X NE '1'.
          IF WA_TBL_SIZE-INDEX = 175.
            WA_TBL_SIZE-INVISIBLE = 1.
          ENDIF.
        ELSEIF IT_SIZECHK1-SIZE_0X = '1'.
          LOOP AT SCREEN.
            IF SCREEN-NAME = 'WA_SIZE-SIZE_0X'.
              SCREEN-INPUT = 1.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.

add code on screen 100 line no 200.

FIELD WA_SIZE-SIZE_0X.

then go to module user command

line no 317

PERFORM CHECK_BOMRT.

line no 7750

IF WA_SIZE-SIZE_0X EQ 'X'.
      SIZE5 = '0X'.
      CONDENSE SIZE5.
      PERFORM CHECK_PRE_RCD1.
    ENDIF.
then line no 415

WA_SIZE-SIZE_3X IS INITIAL AND WA_SIZE-SIZE_0X IS INITIAL

line no 438
PERFORM SAVE.

line no 2537

IF WA_SIZE-SIZE_0X EQ 'X'.
      REFRESH IT_MARC1[].
      CLEAR MATNR.
      CONCATENATE ZCREAT_ROUT-ARTICLE '-' WA_SHADE-SHADE1 '-0X' INTO MATNR.
      SELECT * FROM MARC INTO CORRESPONDING FIELDS OF TABLE IT_MARC1 WHERE 
MATNR = MATNR
                                                                       AND 
WERKS = SEL_WER.
      IF SY-SUBRC EQ 0.
        PERFORM BDC.
      ENDIF.
    ENDIF.

You might also like