Logic to display final approver name
Fetch FRGGR FRGSX FRGKE by passing EBELN and FRGRL Eq ‘X’ Into table EKKO
Pass FRGGR FRGSX into table T16FS and Fetch FRGC1 , FRGC2 , FRGC3 , FRGC4 , FRGC5 , FRGC6 , FRGC7 , FRGC8.
If NOT FGRC1 IS INTIAL AND FRGC2 IS INITIAL
PASS FGRC1 INTO TABLE T16FW AND FETCH OBJID
PASS OBJID INTO TABLE USR21 AND FETCH PERSNUMBER
PASS PERSUMBER INTO TABLE ADRP AND FETCH NAME_TEXT
Display NAME_TEXT in the report output to display processor name
ELSEIf NOT FGRC2 IS INTIAL AND FRGC3 IS INITIAL
PASS FGRC2 INTO TABLE T16FW AND FETCH OBJID
PASS OBJID INTO TABLE USR21 AND FETCH PERSNUMBER
PASS PERSUMBER INTO TABLE ADRP AND FETCH NAME_TEXT
Display NAME_TEXT in the report output to display processor name
ELSEIf NOT FGRC3 IS INTIAL AND FRGC4 IS INITIAL
PASS FGRC3 INTO TABLE T16FW AND FETCH OBJID
PASS OBJID INTO TABLE USR21 AND FETCH PERSNUMBER
PASS PERSUMBER INTO TABLE ADRP AND FETCH NAME_TEXT
Display NAME_TEXT in the report output to display processor name
ELSEIf NOT FGRC4 IS INTIAL AND FRGC3 IS INITIAL
PASS FGRC4 INTO TABLE T16FW AND FETCH OBJID
PASS OBJID INTO TABLE USR21 AND FETCH PERSNUMBER
PASS PERSUMBER INTO TABLE ADRP AND FETCH NAME_TEXT
Display NAME_TEXT in the report output to display processor name
ELSEIf NOT FGRC5 IS INTIAL AND FRGC4 IS INITIAL
PASS FGRC5 INTO TABLE T16FW AND FETCH OBJID
PASS OBJID INTO TABLE USR21 AND FETCH PERSNUMBER
PASS PERSUMBER INTO TABLE ADRP AND FETCH NAME_TEXT
Display NAME_TEXT in the report output to display processor name
ELSEIf NOT FGRC6 IS INTIAL AND FRGC5 IS INITIAL
PASS FGRC6 INTO TABLE T16FW AND FETCH OBJID
PASS OBJID INTO TABLE USR21 AND FETCH PERSNUMBER
PASS PERSUMBER INTO TABLE ADRP AND FETCH NAME_TEXT
Display NAME_TEXT in the report output to display processor name
ELSEIf NOT FGRC7 IS INTIAL AND FRGC6 IS INITIAL
PASS FGRC7 INTO TABLE T16FW AND FETCH OBJID
PASS OBJID INTO TABLE USR21 AND FETCH PERSNUMBER
PASS PERSUMBER INTO TABLE ADRP AND FETCH NAME_TEXT
Display NAME_TEXT in the report output to display processor name
ELSEIf NOT FGRC 8 IS INTIAL AND FRGC7 IS INITIAL
PASS FGRC8 INTO TABLE T16FW AND FETCH OBJID
PASS OBJID INTO TABLE USR21 AND FETCH PERSNUMBER
PASS PERSUMBER INTO TABLE ADRP AND FETCH NAME_TEXT
Display NAME_TEXT in the report output to display processor name
ELSE
EXIT.
Comments
Post a Comment