I need guidance in writing below program-
- create a Program with date as an input parameter
- Pass the date in table LIKP - WADAT_IST and LFART = ZEXM. Pass the delivery number (VBELN) in VBUK – VBELN and check if WBSTK = C. If yes then proceed or else no action required.
- Pass the delivery number in VBRP – VGBEL and get the Invoice number from VBELN.
- Pass the VBELN in VBRK and check following-FKART = ZIME, RFBSK is not C or E and FKSTO = Blank.
- If above condition is satisfied pass the Invoice number in FM to release the Invoice.