Suppress Output for Closed PO

Hi,
actuallly the requirement suppress out put for closed po.
when delivery completed and final invoice indicator is  checked the output shouldnt take place.
po out put should be suppress.
The following fields needs to be cleared to suppress PO output:
-  EKPO-ELIKZ Delivery Completed Indicator
-  EKPO-EREKZ Final Invoice Indicator
Standard program MEDRUCK can be used as a reference.
exactly i want to know is there any configration changes
where i can go head and do the changes, so that when the po in change mode when  delivery completed and final invocie indicator is checked.out put shouldnot  take place.
kindly help in rectifying the issue,

Hi,
I would advice you to check the following:
Please kindly review notes 46842 and 28869 for the SAP standard                     
behaviour.                                                                               
28869 Printout of changes although field not print-relevant                        
46842 Change not relvt to printing generates chng mesg.                                                                               
When a field is changed in a purchase order, a change message is                   
generated (created automatically by ME22, please refer to note 28869).             
However, if the change is not relevant for printing, this message                  
can neither be displayed nor printed (Please refer to note 46842).     
Regards,
Edit

Similar Messages

  • Suppressing Output for Purchase Order changes to Vendors

    Hi There,
    Can someone please advice what is the best way to supress an output to a vendor that only relates to changes made to a Purchase Order. We need to limit this suppression to one document type.
    Any help appreciated.
    Many Thanks
    Uzzy

    Normally you can define requirements routines. There you could e.g. check for document type and for the transaction code (SY-TCODE). From the transaction code it should be possible to see if the documnet is created or changed.

  • Functon module for closing stock

    Hi All,
    Is there any function module is there to findout closing stock by taking opening stock .
    Thanks&regds,
    Sree.

    I have one report for closing and opening stock go through it
    *& Report  Z_OPEN_CLOSE                                                *
    REPORT  Z_OPEN_CLOSE MESSAGE-ID YW2 LINE-SIZE 231 LINE-COUNT 45
    NO STANDARD PAGE HEADING.
    Type Declaration *
    TYPE-POOLS SLIS.
    Tables *
    TABLES: MKPF, " Material Document: Header Data
            MSEG, " Material Document: Item Data
            MARA,
            MARD,
            S031,
            EKKO,
            EKPO,
            LIKP,
            MAKT,
            J_1IWRKCUS,
            T001W,
            WB2_V_MKPF_MSEG2,
            MMIM_REP_PRINT,
            YW2_STKMOVEMENTS,
            YPLNT,
            MARDH.
    Internal Tables *
    DATA: I_WERKS LIKE J_1IWRKCUS OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF I_YPLNT OCCURS 0,
             PPLNT LIKE YPLNT-PPLNT,
             WPLNT LIKE YPLNT-WPLNT,
          END OF I_YPLNT.
    DATA: BEGIN OF I_MKPF OCCURS 0,
            MBLNR LIKE MKPF-MBLNR,
            MJAHR LIKE MKPF-MJAHR,
            BUDAT LIKE MKPF-BUDAT,
            VGART LIKE MKPF-VGART,
            BWART LIKE MSEG-BWART,
            MATNR LIKE MSEG-MATNR,
            WERKS LIKE MSEG-WERKS,
            LGORT LIKE MSEG-LGORT,
            MENGE LIKE MSEG-MENGE,
            MEINS LIKE MSEG-MEINS,
            KUNNR LIKE MSEG-KUNNR,
            ZEILE LIKE MSEG-ZEILE,
            XAUTO LIKE MSEG-XAUTO,
            SHKZG LIKE MSEG-SHKZG,
            MATNR1 LIKE MSEG-MATNR,
          END OF I_MKPF.
    DATA: BEGIN OF I_MARDH OCCURS 0,
           WERKS LIKE MARDH-WERKS,
           MEINS LIKE MARA-MEINS,
           MATNR LIKE MARDH-MATNR,
           LGORT LIKE MARDH-LGORT,
           LABST LIKE MARDH-LABST,
           LFGJA LIKE MARDH-LFGJA, "Added -MB
           LFMON LIKE MARDH-LFMON, "Added -MB
           PERIO(6),
           INSME LIKE MARDH-LABST,
           EINME LIKE MARDH-LABST,
           SPEME LIKE MARDH-LABST,
           RETME LIKE MARDH-LABST,
           O_STK LIKE MARDH-LABST, " Opening Stock
           C_STK LIKE MARDH-LABST, " Closing Stock
          END OF I_MARDH.
    DATA: BEGIN OF I_MARD OCCURS 0,
           WERKS LIKE MARD-WERKS,
           MATNR LIKE MARD-MATNR,
           LGORT LIKE MARD-LGORT,
           LABST LIKE MARD-LABST,
           INSME LIKE MARD-LABST,
           MEINS LIKE MARA-MEINS,
           EINME LIKE MARD-LABST,
           SPEME LIKE MARD-LABST,
           RETME LIKE MARD-LABST,
          END OF I_MARD.
    DATA: I_MARD1 LIKE I_MARD OCCURS 0 WITH HEADER LINE.
    DATA: I_MARDH1 LIKE I_MARDH OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF I_MKPF1 OCCURS 0,
            MBLNR LIKE MKPF-MBLNR,
            WERKS LIKE MSEG-WERKS,
            MATNR LIKE MSEG-MATNR,
            BUDAT LIKE MKPF-BUDAT,
            BWART LIKE MSEG-BWART,
            MJAHR LIKE MKPF-MJAHR,
            VGART LIKE MKPF-VGART,
            LGORT LIKE MSEG-LGORT,
            MENGE LIKE MSEG-MENGE,
            MEINS LIKE MSEG-MEINS,
            XAUTO LIKE MSEG-XAUTO,
            SHKZG LIKE MSEG-SHKZG,
          END OF I_MKPF1.
    DATA: BEGIN OF I_MKPF2 OCCURS 0,
           WERKS LIKE MSEG-WERKS,
           MATNR LIKE MSEG-MATNR,
           BUDAT LIKE MKPF-BUDAT,
           BWART LIKE MSEG-BWART,
           MJAHR LIKE MKPF-MJAHR,
           VGART LIKE MKPF-VGART,
           LGORT LIKE MSEG-LGORT,
           MENGE LIKE MSEG-MENGE,
           MEINS LIKE MSEG-MEINS,
           XAUTO LIKE MSEG-XAUTO,
         END OF I_MKPF2.
    DATA: BEGIN OF I_FINAL5 OCCURS 0,
           WERKS LIKE MSEG-WERKS, " Plant
           MATNR LIKE MSEG-MATNR, " Material
           LGORT LIKE MSEG-LGORT, " Storage Location
           BUDAT LIKE MKPF-BUDAT, " Posting Date
           MTART LIKE MARA-MTART, " Material Type
           SPMON LIKE S031-SPMON, " Month
           MAKTX LIKE MAKT-MAKTX, " Description
    meins(3), " UOM
            MEINS LIKE MSEG-MEINS,
            O_STK LIKE MARDH-LABST, " opening stock
            TRECEP LIKE MARDH-LABST, " total receipts
            PRODU LIKE MARDH-LABST, " Net Receipts - Production
            RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
            SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
            TDISP LIKE MARDH-LABST, " total dispatches
            CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
            OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
            TLOSS LIKE MARDH-LABST, " Total Loss
            TRLOSS LIKE MARDH-LABST, " Transit Loss
            WHLOSS LIKE MARDH-LABST, " Warehouse Loss
            C_STK LIKE MARDH-LABST, " Closing Stock
            TRFSTK LIKE MARDH-LABST, "Transfer stock
            MENGE LIKE MSEG-MENGE,
            OTHADJ LIKE MARDH-LABST,
          END OF I_FINAL5.
    DATA: BEGIN OF I_FINAL OCCURS 0,
            WERKS LIKE MSEG-WERKS, " Plant
            MATNR LIKE MSEG-MATNR, " Material
            BUDAT LIKE MKPF-BUDAT, " Posting Date
            MTART LIKE MARA-MTART, " Material Type
            SPMON LIKE S031-SPMON, " Month
            MAKTX LIKE MAKT-MAKTX, " Description
    meins(3), " UOM
            MEINS LIKE MSEG-MEINS,
            O_STK LIKE MARDH-LABST, " opening stock
            TRECEP LIKE MARDH-LABST, " total receipts
            PRODU LIKE MARDH-LABST, " Net Receipts - Production
            RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
            SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
            TDISP LIKE MARDH-LABST, " total dispatches
            CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
            OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
            TRFSTK LIKE MARDH-LABST, "Material Transfer stock
            TRLOSS LIKE MARDH-LABST, " Transit Loss
            WHLOSS LIKE MARDH-LABST, " Warehouse Loss
            TLOSS LIKE MARDH-LABST, " Total Loss
            C_STK LIKE MARDH-LABST, " Closing Stock
            OTHADJ LIKE MARDH-LABST,
           END OF I_FINAL.
    DATA: I_FINAL1 LIKE I_FINAL OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF I_FINAL_TEMP OCCURS 0,
            WERKS LIKE MSEG-WERKS, " Plant
            MATNR LIKE MSEG-MATNR, " Material
            MTART LIKE MARA-MTART, " Material Type
            MAKTX LIKE MAKT-MAKTX, " Description
            MEINS LIKE MSEG-MEINS,
            O_STK LIKE MARDH-LABST, " opening stock
            TRECEP LIKE MARDH-LABST, " total receipts
            PRODU LIKE MARDH-LABST, " Net Receipts - Production
            RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
            SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
            TDISP LIKE MARDH-LABST, " total dispatches
            CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
            OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
            TRFSTK LIKE MARDH-LABST, "Material Transfer stock
            TRLOSS LIKE MARDH-LABST, " Transit Loss
            WHLOSS LIKE MARDH-LABST, " Warehouse Loss
            TLOSS LIKE MARDH-LABST, " Total Loss
            C_STK LIKE MARDH-LABST, " Closing Stock
            OTHADJ LIKE MARDH-LABST,
          END OF I_FINAL_TEMP.
    For Materials
    DATA: BEGIN OF I_MARA OCCURS 0,
           MATNR TYPE MARA-MATNR,
           MTART TYPE MARA-MTART,
           MEINS LIKE MARA-MEINS,
           LABST TYPE MARD-LABST,
           MAKTX LIKE MAKT-MAKTX,
          END OF I_MARA.
    DATA: BEGIN OF I_STKMVMNTS OCCURS 0,
           BWART LIKE MSEG-BWART,
           SHKZG LIKE MSEG-SHKZG,
           VZBEW LIKE YW2_STKMOVEMENTS-VZBEW,
          END OF I_STKMVMNTS.
    DATA: BEGIN OF I_FINALT OCCURS 0,
           WERKS LIKE MSEG-WERKS, " Plant
           MATNR LIKE MSEG-MATNR, " Material
           BUDAT LIKE MKPF-BUDAT, " Posting Date
           MTART LIKE MARA-MTART, " Material Type
           SPMON LIKE S031-SPMON, " Month
           MAKTX LIKE MAKT-MAKTX, " Description
    meins(3), " UOM
           MEINS LIKE MSEG-MEINS,
           O_STK LIKE MARDH-LABST, " opening stock
           TRECEP LIKE MARDH-LABST, " total receipts
           PRODU LIKE MARDH-LABST, " Net Receipts - Production
           RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
           SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
           TDISP LIKE MARDH-LABST, " total dispatches
           CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
           OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
           TRFSTK LIKE MARDH-LABST, "Material Transfer stock
           TRLOSS LIKE MARDH-LABST, " Transit Loss
           WHLOSS LIKE MARDH-LABST, " Warehouse Loss
           TLOSS LIKE MARDH-LABST, " Total Loss
           C_STK LIKE MARDH-LABST, " Closing Stock
           OTHADJ LIKE MARDH-LABST,
           MONTH(8) ,
          END OF I_FINALT.
    DATA: IMKPFT LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
    DATA: IMKPFT1 LIKE I_MKPF1 OCCURS 0 WITH HEADER LINE.
    DATA: IMARDT LIKE I_MARD OCCURS 0 WITH HEADER LINE.
    DATA: IMARDHT LIKE I_MARDH OCCURS 0 WITH HEADER LINE.
    DATA: T_FINAL LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
    DATA: IMKPFT2 LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
    FCAT is used for the field catalog
    DATA: FCAT TYPE TABLE OF SLIS_FIELDCAT_ALV WITH NON-UNIQUE DEFAULT KEY
                      WITH HEADER LINE INITIAL SIZE 0,
    for excluding the ICONs from the application toolbar
          FEXC TYPE TABLE OF SLIS_EXTAB WITH NON-UNIQUE DEFAULT KEY
                     WITH HEADER LINE INITIAL SIZE 0,
    FS_LAYO is used for Grid Layout
          FS_LAYO TYPE SLIS_LAYOUT_ALV,
    FEVENTS to handle the events TOP OF PAGE & USER_COMMAND
          FEVENTS TYPE TABLE OF SLIS_ALV_EVENT WITH NON-UNIQUE DEFAULT KEY
                     WITH HEADER LINE INITIAL SIZE 0,
    FHEADER is used for List header
          FHEADER TYPE TABLE OF SLIS_LISTHEADER WITH NON-UNIQUE DEFAULT KEY
                     WITH HEADER LINE INITIAL SIZE 0,
    sort is used for sorting
          FSORT TYPE TABLE OF SLIS_SORTINFO_ALV WITH NON-UNIQUE DEFAULT KEY
                     WITH HEADER LINE INITIAL SIZE 0,
          FCAT1 TYPE TABLE OF SLIS_FIELDCAT_ALV WITH NON-UNIQUE DEFAULT KEY
                    WITH HEADER LINE INITIAL SIZE 0,
          FS_LAYO1 TYPE SLIS_LAYOUT_ALV,
          GT_LIST_TOP_OF_PAGE1 TYPE SLIS_T_LISTHEADER,
          FEVENTS1 TYPE TABLE OF SLIS_ALV_EVENT WITH NON-UNIQUE DEFAULT KEY
                 WITH HEADER LINE INITIAL SIZE 0,
           FHEADER1 TYPE TABLE OF SLIS_LISTHEADER WITH NON-UNIQUE DEFAULT  
                  KEY WITH HEADER LINE INITIAL SIZE 0,
           G_STATU_071 TYPE SLIS_FORMNAME VALUE 'Z_PFSTATUS',
           ALV_VARIANT1 LIKE DISVARIANT.
    Variable Declaration *
    TYPES: TRFF_TYPE_DEC_6_5(6) TYPE P DECIMALS 5.
    DATA: FYEAR(4),
          MON(2),
          FYEAR1(4),
          MON1(2),
          OBAL LIKE MARD-LABST,
          CBAL LIKE MARD-LABST,
          INDEX TYPE I,
          COUNT,
          COUNT1 TYPE I,
          O_STK TYPE P DECIMALS 3,
          C_STK TYPE P DECIMALS 3,
          V_MJAHR LIKE MKPF-MJAHR,
          MONTHS TYPE TRFF_TYPE_DEC_6_5,
          MONTH TYPE I.
    Global variables for handling ALV functionality
    DATA: ALV_KEYINFO TYPE SLIS_KEYINFO_ALV,
          ALV_VARIANT LIKE DISVARIANT,
          ALV_LAYOUT TYPE SLIS_LAYOUT_ALV,
          ALV_REPID LIKE SY-REPID,
          ALV_PRINT TYPE SLIS_PRINT_ALV,
          ALV_DETAIL_FUNC(30),
          ALV_DEFAULT_VARIANT LIKE DISVARIANT-VARIANT,
          ALV_COLOURIZE_FIELDS LIKE MMIM_REP_PRINT-COLOR.
    RANGES: R_BUDAT FOR MKPF-BUDAT.
    *Added by Prabhu for year on 26.4.05.
    DATA: IDATE LIKE R_BUDAT OCCURS 0 WITH HEADER LINE.
    Selection Screen Elements *
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-001.
      SELECT-OPTIONS: S_WERKS FOR MARD-WERKS OBLIGATORY NO INTERVALS.
      PARAMETER: P_SPMON LIKE S031-SPMON NO-DISPLAY .
      SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY,
                      S_LGORT FOR MSEG-LGORT NO-EXTENSION NO INTERVALS,
                      S_MBLNR FOR MKPF-MBLNR,
                      S_BUDAT FOR MKPF-BUDAT OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK BLK.
    SELECTION-SCREEN BEGIN OF BLOCK BLK3 WITH FRAME TITLE TEXT-004.
          PARAMETER : MTART LIKE MARA-MTART DEFAULT 'FERT' NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK BLK3.
    SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-003.
    SELECTION-SCREEN END OF BLOCK BLK2.
    ADDED BY PRABHU FOR DAY-WISE REPORT.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-007.
      PARAMETERS: D1 RADIOBUTTON GROUP P1 DEFAULT 'X',
                  M1 RADIOBUTTON GROUP P1,
                  Y1 RADIOBUTTON GROUP P1.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-006.
    PARAMETERS: ALV_DEF LIKE DISVARIANT-VARIANT.
    SELECTION-SCREEN END OF BLOCK B2.
    DATA: S_BUDAT1 LIKE S_BUDAT OCCURS 0 WITH HEADER LINE."prabhu
    Initialization *
    INITIALIZATION.
      PERFORM ALV_INIT.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR ALV_DEF.
      PERFORM ALV_F4.
    At Selection Screen
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_spmon.
    PERFORM monat_f4.
    At Selection Screen *
    AT SELECTION-SCREEN.
    checking for the layout
      PERFORM ALV_CHECK.
    authorisation check for the Plant
    PERFORM auth_check.
    Validation for the Plant
      PERFORM VALIDITY_CHECK.
      IF MTART NE 'FERT'.
        MESSAGE E041 WITH 'Material Type must be FERT Only...'.
      ENDIF.
      IF D1 = 'X'." On 26.4.05.
        P_SPMON0(4) = S_BUDAT-LOW0(4).
        P_SPMON4(2) = S_BUDAT-LOW4(2).
      ELSE.
        P_SPMON0(4) = S_BUDAT-LOW0(4).
        P_SPMON4(2) = S_BUDAT-LOW4(2).
      ENDIF.
      LOOP AT S_BUDAT.
        IF S_BUDAT-HIGH IS INITIAL.
          S_BUDAT-HIGH = S_BUDAT-LOW.
          MODIFY S_BUDAT.
        ENDIF.
      ENDLOOP.
      IDATE-LOW = S_BUDAT-LOW.
      IDATE-HIGH = S_BUDAT-HIGH.
      CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
        EXPORTING
           I_DATE_FROM = IDATE-LOW
           I_DATE_TO = IDATE-HIGH
       IMPORTING
    E_DAYS =
          E_MONTHS = MONTH
    E_YEARS =
      DATA: I(3) TYPE C.
      I = S_BUDAT-LOW+4(2).
      CLEAR: R_BUDAT.
      REFRESH: R_BUDAT.
    *added by Prabhu for Only for Oneday.on 18.5.5
      IF MONTH EQ '0'.
        MONTH = MONTH + 1.
      ENDIF.
    *added by Prabhu for Only for Oneday.on 18.5.5
      DO MONTH TIMES.
        R_BUDAT-LOW = S_BUDAT-LOW.
        APPEND R_BUDAT.
      ENDDO.
      I = 0.
      LOOP AT R_BUDAT.
        R_BUDAT-LOW4(2) = S_BUDAT-LOW4(2) + I.
        I = I + 1.
        R_BUDAT-LOW+6(2) = '01'.
        MODIFY R_BUDAT.
      ENDLOOP.
      LOOP AT R_BUDAT.
        CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
           EXPORTING
             DAY_IN = R_BUDAT-LOW
           IMPORTING
             LAST_DAY_OF_MONTH = R_BUDAT-HIGH
          EXCEPTIONS
            DAY_IN_NO_DATE = 1
            OTHERS = 2
        MODIFY R_BUDAT.
      ENDLOOP.
      LOOP AT R_BUDAT.
        IF R_BUDAT-LOW4(2) = S_BUDAT-LOW4(2).
          R_BUDAT-LOW = S_BUDAT-LOW.
          MODIFY R_BUDAT.
        ENDIF.
        IF R_BUDAT-HIGH4(2) = S_BUDAT-HIGH4(2).
          R_BUDAT-HIGH = S_BUDAT-HIGH.
          MODIFY R_BUDAT.
        ENDIF.
    For Summary on 26.4.05.
        IF Y1 = 'X'.
          CLEAR R_BUDAT.
          REFRESH R_BUDAT.
          R_BUDAT-LOW = S_BUDAT-LOW.
          R_BUDAT-HIGH = S_BUDAT-HIGH.
          APPEND R_BUDAT.
          CLEAR R_BUDAT.
        ENDIF.
      ENDLOOP.
    At Selection Screen *
    AT SELECTION-SCREEN OUTPUT.
    Start of Selection *
    START-OF-SELECTION.
      V_MJAHR = P_SPMON+0(4).
    Get plant distinction warehouse/production
      PERFORM GET_PLANT_DISTINCTION.
    Collect the data from various tables
      PERFORM GETDATA_FG_STOCK.
    here the number of rows in the output table is found
      PERFORM OUTPUT_TABLE_CHECK.
    here the top of the page code is written, that is to be displayed
    in the output
      PERFORM Z_TOP_OF_PAGE.
    here ALV layout properties are set
      PERFORM Z_LAYOUT_SETTINGS.
    ALV EVENTS for TOP OF PAGE and for USER COMMAND
      PERFORM Z_ALV_EVENTS.
    The field catalog is defined for the Primary List is defined in
    the subroutine CREATE_FIELD_CATALOG include program ZPRRDOCR_FCAT
      PERFORM Z_CREATE_FIELD_CATALOG.
    This is for displaying the output
      PERFORM Z_REUSE_ALV_GRID_DISPLAY.
    *& Form getdata_fg_stock
    Getting data from standard tables
    FORM GETDATA_FG_STOCK.
    For getting the Start date & end date of the month
    PERFORM get_month_dates.
    Getting the Opening Stock from MARDH table
      IF MON EQ '01'.
        MON1 = MON.
        FYEAR1 = FYEAR.
        MON = '12'.
        FYEAR = FYEAR - 1.
      ELSE.
        MON1 = MON.
        FYEAR1 = FYEAR.
        MON = MON - 1.
        FYEAR = FYEAR.
      ENDIF.
      PERFORM GET_RECORDS_FROM_DB.
    *added for Month Summary on 26.4.05.
      LOOP AT R_BUDAT.
        S_BUDAT-LOW = R_BUDAT-LOW.
        S_BUDAT-HIGH = R_BUDAT-HIGH.
    *for Month
        P_SPMON0(4) = S_BUDAT-LOW0(4).
        P_SPMON4(2) = S_BUDAT-LOW4(2).
    *for summary.
        IF Y1 = 'X'.
          LOOP AT S_BUDAT.
            S_BUDAT1-SIGN = 'I'.
            S_BUDAT1-OPTION = 'NB'.
            S_BUDAT1-LOW = S_BUDAT-LOW.
            S_BUDAT1-HIGH = S_BUDAT-HIGH.
            APPEND S_BUDAT1.
            CLEAR S_BUDAT1.
          ENDLOOP.
        ENDIF.
        IMKPFT[] = I_MKPF[].
        IMKPFT2[] = I_MKPF[].
        IMARDT[] = I_MARD[].
        IMARDHT[] = I_MARDH[].
        PERFORM MONTH_WISE.
        PERFORM PROCESS_MOVEMENTS.
        PERFORM CALCULATE_OPENING_STOCK.
        PERFORM UPDATE_NON_TRANSACTION_ITMS.
        PERFORM DELETE_EMPTY_RECORDS.
        CLEAR: IMARDHT,IMARDT,IMKPFT1,IMKPFT,I_FINAL,I_FINAL5.
        REFRESH: IMARDHT,IMARDT,IMKPFT1,I_FINAL,I_FINAL5,IMKPFT.
      ENDLOOP.
      CLEAR: R_BUDAT.
      REFRESH: R_BUDAT.
    *end of changes for month.
    ENDFORM. " getdata_fg_stock
    FORM MONAT_F4 *
    F4-Hilfe für Monat *
    FORM MONAT_F4.
      DATA: BEGIN OF MF_DYNPFIELDS OCCURS 1.
              INCLUDE STRUCTURE DYNPREAD.
      DATA: END OF MF_DYNPFIELDS.
      DATA: MF_RETURNCODE LIKE SY-SUBRC,
             MF_MONAT LIKE ISELLIST-MONTH,
             MF_HLP_REPID LIKE SY-REPID.
      FIELD-SYMBOLS: .
    Wert von Dynpro lesen
      GET CURSOR FIELD MF_DYNPFIELDS-FIELDNAME.
      APPEND MF_DYNPFIELDS.
      MF_HLP_REPID = SY-REPID.
      DO 2 TIMES.
        CALL FUNCTION 'DYNP_VALUES_READ'
          EXPORTING
            DYNAME               = MF_HLP_REPID
            DYNUMB               = SY-DYNNR
          TABLES
            DYNPFIELDS           = MF_DYNPFIELDS
          EXCEPTIONS
            INVALID_ABAPWORKAREA = 01
            INVALID_DYNPROFIELD  = 02
            INVALID_DYNPRONAME   = 03
            INVALID_DYNPRONUMMER = 04
            INVALID_REQUEST      = 05
            NO_FIELDDESCRIPTION  = 06
            UNDEFIND_ERROR       = 07.
        IF SY-SUBRC = 3.
    Aktuelles Dynpro ist Wertemengenbild
          MF_HLP_REPID = 'SAPLALDB'.
        ELSE.
          READ TABLE MF_DYNPFIELDS INDEX 1.
    Unterstriche durch Blanks ersetzen
          TRANSLATE MF_DYNPFIELDS-FIELDVALUE USING '_ '.
          EXIT.
        ENDIF.
      ENDDO.
      IF SY-SUBRC = 0.
    Konvertierung ins interne Format
        CALL FUNCTION 'CONVERSION_EXIT_PERI_INPUT'
          EXPORTING
            INPUT         = MF_DYNPFIELDS-FIELDVALUE
          IMPORTING
            OUTPUT        = MF_MONAT
          EXCEPTIONS
            ERROR_MESSAGE = 1.
        IF MF_MONAT IS INITIAL.
    Monat ist initial => Vorschlagswert aus akt. Datum ableiten
          MF_MONAT = SY-DATLO(6).
        ENDIF.
        CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
          EXPORTING
            ACTUAL_MONTH               = MF_MONAT
          IMPORTING
            SELECTED_MONTH             = MF_MONAT
            RETURN_CODE                = MF_RETURNCODE
          EXCEPTIONS
            FACTORY_CALENDAR_NOT_FOUND = 01
            HOLIDAY_CALENDAR_NOT_FOUND = 02
            MONTH_NOT_FOUND            = 03.
        IF SY-SUBRC = 0 AND MF_RETURNCODE = 0.
    ASSIGN (MF_DYNPFIELDS-FIELDNAME) TO <MF_FELD>. " ==>> note 148804
    <MF_FELD> = MF_MONAT.
          CALL FUNCTION 'CONVERSION_EXIT_PERI_OUTPUT'
            EXPORTING
              INPUT  = MF_MONAT
            IMPORTING
              OUTPUT = MF_DYNPFIELDS-FIELDVALUE.
          COLLECT MF_DYNPFIELDS.
          CALL FUNCTION 'DYNP_VALUES_UPDATE'
            EXPORTING
              DYNAME               = MF_HLP_REPID
              DYNUMB               = SY-DYNNR
            TABLES
              DYNPFIELDS           = MF_DYNPFIELDS
            EXCEPTIONS
              INVALID_ABAPWORKAREA = 01
              INVALID_DYNPROFIELD  = 02
              INVALID_DYNPRONAME   = 03
              INVALID_DYNPRONUMMER = 04
              INVALID_REQUEST      = 05
              NO_FIELDDESCRIPTION  = 06
              UNDEFIND_ERROR       = 07. "<<== note 148804
        ENDIF.
      ENDIF.
    ENDFORM.                                                    "MONAT_F4
    *& Form get_month_dates
    Calculating the Month Start & End Date
    FORM GET_MONTH_DATES.
      IF M1 = 'X'.
        FYEAR = P_SPMON+0(4).
        MON = P_SPMON+4(2).
        CONCATENATE FYEAR MON '01' INTO R_BUDAT-LOW.
        R_BUDAT-SIGN = 'I'.
        R_BUDAT-OPTION = 'BT'.
        CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
          EXPORTING
            I_DATE = R_BUDAT-LOW
          IMPORTING
            E_DATE = R_BUDAT-HIGH.
        APPEND R_BUDAT.
        CLEAR S_BUDAT.
        REFRESH S_BUDAT.
        S_BUDAT-SIGN = 'I'.
        S_BUDAT-OPTION = 'BT'.
        S_BUDAT-LOW = R_BUDAT-LOW.
        S_BUDAT-HIGH = R_BUDAT-HIGH.
        APPEND S_BUDAT.
      ELSE.
        FYEAR = P_SPMON+0(4).
        MON = P_SPMON+4(2).
        CONCATENATE FYEAR MON '01' INTO R_BUDAT-LOW.
        R_BUDAT-SIGN = 'I'.
        R_BUDAT-OPTION = 'BT'.
        CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
          EXPORTING
            I_DATE = R_BUDAT-LOW
          IMPORTING
            E_DATE = R_BUDAT-HIGH.
        APPEND R_BUDAT.
      ENDIF.
    ENDFORM. " get_month_dates
    *& Form output_table_Check
    checking for records for output
    FORM OUTPUT_TABLE_CHECK .
      DESCRIBE TABLE I_FINALT LINES INDEX.
      IF INDEX EQ 0.
        MESSAGE I041 WITH TEXT-005.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM. "OUTPUT_TABLE_CHECK
    *& Form Z_TOP_OF_PAGE
    for setting the details in the top of page *
    has no formal paramters *
    FORM Z_TOP_OF_PAGE.
      DATA: V_MON(2),
      V_YR(40),
      V_FIN(18),
      V_FIN1(48),
      LOW(10),
      HIGH(10).
      V_MON = P_SPMON+4(2).
      V_YR = P_SPMON+0(4).
      FHEADER-TYP = 'H'.
      FHEADER-INFO = 'Stock Register Report (FG Stock)'.
      APPEND FHEADER.
      CLEAR FHEADER.
    *if m1 = 'X'.
    CONCATENATE 'Month = ' v_mon '.' v_yr INTO v_fin.
    fheader-typ = 'H'.
    fheader-info = v_fin.
    APPEND fheader.
    CLEAR fheader.
    *endif."prabhu on 18.5.5
      IF D1 = 'X'.
        CLEAR S_BUDAT.
        LOOP AT S_BUDAT.
          CONCATENATE S_BUDAT-LOW6(2) '/' S_BUDAT-LOW4(2) '/'
          S_BUDAT-LOW+0(4) INTO LOW.
          CONCATENATE S_BUDAT-HIGH6(2) '/' S_BUDAT-HIGH4(2) '/'
          S_BUDAT-HIGH+0(4) INTO HIGH.
          CONCATENATE 'Date = ' LOW ' - ' HIGH INTO V_FIN1.
          FHEADER-TYP = 'H'.
          FHEADER-INFO = V_FIN1.
          APPEND FHEADER.
          CLEAR FHEADER.
        ENDLOOP.
      ENDIF.
    ENDFORM. " Z_TOP_OF_PAGE
    *& Form Z_LAYOUT_SETTINGS
    this is done for setting the properties for the layout of the *
    grid *
    has no formal paramters *
    FORM Z_LAYOUT_SETTINGS.
      FS_LAYO-ZEBRA = 'X'. " Output in Zebra pattern
      FS_LAYO-DETAIL_POPUP = 'X'. " A popup window appears to give
      FS_LAYO-DETAIL_TITLEBAR = TEXT-022.
      FS_LAYO-COLWIDTH_OPTIMIZE = 'X'.
    ENDFORM. " Z_LAYOUT_SETTINGS
    *& Form Z_ALV_EVENTS
    This is used for handling the events TOP OF PAGE and the USER *
    COMMAND event *
    has no formal paramters *
    FORM Z_ALV_EVENTS.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          I_LIST_TYPE = 0
        IMPORTING
          ET_EVENTS   = FEVENTS[].
      READ TABLE FEVENTS WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC = 0.
        FEVENTS-FORM = 'Z_TOPOFPAGE'.
        MODIFY FEVENTS INDEX SY-TABIX.
        CLEAR FEVENTS.
      ENDIF.
      READ TABLE FEVENTS WITH KEY NAME = 'USER_COMMAND'.
      IF SY-SUBRC = 0.
        FEVENTS-FORM = 'Z_USER_COMMAND'.
        MODIFY FEVENTS INDEX SY-TABIX.
        CLEAR FEVENTS.
      ENDIF.
    ENDFORM. "Z_ALV_EVENTS
    *& Form Z_CREATE_FIELD_CATALOG
    here the field catalog is created for the primary list *
    no formal parameters *
    FORM Z_CREATE_FIELD_CATALOG.
    for the Plant
      FCAT-FIELDNAME = 'WERKS'.
      FCAT-KEY = 'X'.
      FCAT-OUTPUTLEN = '000005'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Plant'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Material Type
      FCAT-FIELDNAME = 'MTART'.
      FCAT-KEY = 'X'.
      FCAT-OUTPUTLEN = '000006'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'MatTyp'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Material No.
      FCAT-FIELDNAME = 'MATNR'.
      FCAT-KEY = 'X'.
    fcat-hotspot = 'X'.
      FCAT-OUTPUTLEN = '000018'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Material'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Material Description
      FCAT-FIELDNAME = 'MAKTX'.
      FCAT-KEY = ''.
      FCAT-OUTPUTLEN = '000040'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Description'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Unit of Measure
      FCAT-FIELDNAME = 'MEINS'.
      FCAT-KEY = ''.
      FCAT-OUTPUTLEN = '03'.
      FCAT-JUST = 'C'.
      FCAT-SELTEXT_M = 'UOM'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'UNIT'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Plant
      FCAT-FIELDNAME = 'MONTH'.
      FCAT-KEY = 'X'.
      FCAT-OUTPUTLEN = '08'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'MONTH'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Opening Stock
      FCAT-FIELDNAME = 'C_STK'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Opening Stock'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
    fcat-do_sum = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Total Receipts
      FCAT-FIELDNAME = 'TRECEP'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Total Receipts'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Production
      FCAT-FIELDNAME = 'PRODU'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Production'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Other Plant Receipts
      FCAT-FIELDNAME = 'RECEP'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Othr Plnt Recpts'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    Sales Return
      FCAT-FIELDNAME = 'SAL_RET'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Sales Return'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    Total Dispatches
      FCAT-FIELDNAME = 'TDISP'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Total Dispatches'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.

  • How to customize the Java Concurrent Program(PO Output for Communication)

    Hi,
    How to customize the Java Concurrent Program(PO Output for Communication)
    I need to add the Line level Ship To Address ,Line Notes and Extended Price fields on Java Concurrent Program.
    Please any body help/guide me in this regard.

    Hi,
    Changing Java Conc. program for "PO Output for Communication" is difficult.
    Actually, if you observe closely, "PO Output for Communication" program uses PO<HEADER/LINES..>_XML views.
    So if you could change these views and add your requireed columns to it, you can automatically see your changes in XML data file.
    See if the following link will you to get there.. http://chandramatta.blogspot.com/
    thanks,
    Matt

  • Output tray closed error message

    I keep getting the error message that my output try is closed when it is open.  I saw another post about this that said maybe the little sensor arm is broken and that does not appear to be the case with mine. What else can I check??? Cathy 

    Hello , Thanks for posting in the HP Forums. I'd like to help you with the "Output Tray Closed" message you are getting in regards to your HP Deskjet 1510 Printer. Firstly, Do you have the printer connected directly to a wall outlet or is it in a surge protector or power bar? Even if you have been using a surge protector/power bar all this time and you feel it is not the cause, please connect it to a wall outlet just so we can eliminate the power source as the root cause. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector
    In this document you will see, ISSUE: Problems or issues may arise when an HP LaserJet series printer is connected to an uninterruptible power supply (UPS), a power strip, or a surge protectorIf that doesn't immediately resolve the issue, I would recommend removing and re-installing the ink cartridges, to see if that will clear the error state. If the issue remains unresolved, I'd recommend contacting our HP phone support for further assistance.Step 1. Open link: www.hp.com/contacthp/
    Step 2. Enter Product number or select to auto detect
    Step 3. Scroll down to "Still need help? Complete the form to select your
    contact options"
    Step 4. Scroll down and click on: HP contact options - click on Get phone
    number Hope this helps!

  • Changing Depreciation Key for Tax for closed fiscal years -

    Hello,
    Hoping someone can help me with this question - Is it possible to change the depreciation key for closed fiscal years - we need to change it for Tax - books. And if yes - does it mean we need to open closed fiscal years ??
    Thank you,
    Richa

    Hi,
    you will need to open the FI and AA periods. After changing the depreciation keys do the necessary dep run and close the books in the correct sequence.There should not be problem.

  • Fore Closing Sales Order

    Hi
    I have created a sales order for items 1000 Qty and delivered 600 qty remaning 400 qty has to be fore closed automatically and must  not appear  in open list

    Hi ,
    Give a reason of rejection for  the line item if you have already done the pgi for the remaining qty of the item then the item in the order will have the status completed .since you dont want to deliver the remaning qty.....
    Kindly chech whit it
    Vivek

  • Excel Output For Standard Report In R12

    Hi Experts,
    My Client wants Excel Output for Standard Reports ( ex:-Open Purchase Order Report (by cost center)_xml)
    I changed the default output to Excel in Template of xml publisher administrator Responsibility.
    Now it is showing the Excel output, but The layout of report is not same as layout which in text output of standard report.
    Please guide me is there any solution to develop the reports layout in ms-excel using xml file rather than rtf template.
    Thanks
    Durga.

    Hi Alex,
    Thanks for your replay.
    Generating the new rtf template which is same as standard layout is difficult task for us. Actually we have 120 reports which have same requirement.
    Is there any other solution for this . please guide me
    Thanks
    Durga
    Edited by: 805567 on Jan 23, 2012 12:33 PM

  • CANCEL_FLAG in PO Output for Communication

    I'm trying to build logic into an RTF template for the "PO Output for Communication" report to handle cancelled lines. The cancel_flag can be set to "Y" at any of 3 levels - PO Header, PO Line and PO shipment. The field is called the same thing (cancel_flag) at all 3 levels.
    In my rtf template, I have a row in a table to display each PO line using the for-each clause. I do not want to display lines which are cancelled (ie where CANCEL_FLAG (at line level) = 'Y'.
    How do I reference the CANCEL_FLAG specifally at line level (not header, and shipment line)??
    My xml is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <PO_DATA>
    <TYPE_LOOKUP_CODE>STANDARD</TYPE_LOOKUP_CODE>
    <SEGMENT1>33832</SEGMENT1>
    <REVISION_NUM>0</REVISION_NUM>
    <PRINT_COUNT>0</PRINT_COUNT>
    <CREATION_DATE>10-DEC-2009 17:42:27</CREATION_DATE>
    <DOCUMENT_BUYER_FIRST_NAME>Happiness</DOCUMENT_BUYER_FIRST_NAME>
    <DOCUMENT_BUYER_LAST_NAME>Makeleni</DOCUMENT_BUYER_LAST_NAME>
    <DOCUMENT_BUYER_TITLE>MS.</DOCUMENT_BUYER_TITLE>
    <DOCUMENT_BUYER_AGENT_ID>4588</DOCUMENT_BUYER_AGENT_ID>
    <CONFIRMING_ORDER_FLAG>N</CONFIRMING_ORDER_FLAG>
    <ACCEPTANCE_REQUIRED_FLAG>N</ACCEPTANCE_REQUIRED_FLAG>
    <CURRENCY_CODE>ZAR</CURRENCY_CODE>
    <CURRENCY_NAME>Rand</CURRENCY_NAME>
    <PAYMENT_TERMS>30 Days 2.5% Discount</PAYMENT_TERMS>
    <VENDOR_NUM>LAP005</VENDOR_NUM>
    <VENDOR_NAME>LAPACK (PTY) LTD</VENDOR_NAME>
    <VENDOR_ADDRESS_LINE1>P O Box 1082</VENDOR_ADDRESS_LINE1>
    <VENDOR_CITY>Isando</VENDOR_CITY>
    <VENDOR_STATE>RSA</VENDOR_STATE>
    <VENDOR_POSTAL_CODE>1600</VENDOR_POSTAL_CODE>
    <VENDOR_COUNTRY>South Africa</VENDOR_COUNTRY>
    <VENDOR_PHONE>9741531</VENDOR_PHONE>
    <SHIP_TO_LOCATION_ID>71695</SHIP_TO_LOCATION_ID>
    <SHIP_TO_LOCATION_NAME>23M CS Isando Personal Care</SHIP_TO_LOCATION_NAME>
    <SHIP_TO_ADDRESS_LINE1>23M CS Isando Personal</SHIP_TO_ADDRESS_LINE1>
    <SHIP_TO_ADDRESS_LINE2>22 Purlin Road</SHIP_TO_ADDRESS_LINE2>
    <SHIP_TO_ADDRESS_INFO>Isando, GP 1600</SHIP_TO_ADDRESS_INFO>
    <SHIP_TO_COUNTRY>South Africa</SHIP_TO_COUNTRY>
    <BILL_TO_LOCATION_ID>78573</BILL_TO_LOCATION_ID>
    <BILL_TO_LOCATION_NAME>Tiger Brands Consumer Manufacturing</BILL_TO_LOCATION_NAME>
    <BILL_TO_ADDRESS_LINE1>P O Box 527</BILL_TO_ADDRESS_LINE1>
    <BILL_TO_ADDRESS_INFO>Paarl, 7620</BILL_TO_ADDRESS_INFO>
    <BILL_TO_COUNTRY>South Africa</BILL_TO_COUNTRY>
    <VENDOR_SITE_ID>95462</VENDOR_SITE_ID>
    <PO_HEADER_ID>711318</PO_HEADER_ID>
    <APPROVED_FLAG>N</APPROVED_FLAG>
    <VENDOR_ID>73269</VENDOR_ID>
    <CLOSED_CODE>OPEN</CLOSED_CODE>
    <ORG_ID>1296</ORG_ID>
    <FIRM_STATUS_LOOKUP_CODE>N</FIRM_STATUS_LOOKUP_CODE>
    <FROZEN_FLAG>N</FROZEN_FLAG>
    <CREATED_BY>7794</CREATED_BY>
    <TERMS_ID>10006</TERMS_ID>
    <RATE_DATE>10-DEC-2009 00:00:00</RATE_DATE>
    <AUTHORIZATION_STATUS>N</AUTHORIZATION_STATUS>
    <LAST_UPDATE_DATE>10-DEC-2009 17:50:02</LAST_UPDATE_DATE>
    <LAST_UPDATED_BY>7794</LAST_UPDATED_BY>
    <SUMMARY_FLAG>N</SUMMARY_FLAG>
    <ENABLED_FLAG>Y</ENABLED_FLAG>
    <LAST_UPDATE_LOGIN>52339081</LAST_UPDATE_LOGIN>
    <CONTERMS_EXIST_FLAG>N</CONTERMS_EXIST_FLAG>
    <PENDING_SIGNATURE_FLAG>N</PENDING_SIGNATURE_FLAG>
    <OU_NAME>CS Consumer National (A90)</OU_NAME>
    <OU_ADDR1>Corporate Hill Office Park</OU_ADDR1>
    <OU_ADDR2>William Nicholl Drive</OU_ADDR2>
    <OU_TOWN_CITY>Bryanston</OU_TOWN_CITY>
    <OU_REGION2>GP</OU_REGION2>
    <OU_POSTALCODE>1768</OU_POSTALCODE>
    <OU_COUNTRY>South Africa</OU_COUNTRY>
    <BUYER_LOCATION_ID>71695</BUYER_LOCATION_ID>
    <BUYER_ADDRESS_LINE1>23M CS Isando Personal</BUYER_ADDRESS_LINE1>
    <BUYER_ADDRESS_LINE2>22 Purlin Road</BUYER_ADDRESS_LINE2>
    <BUYER_CITY_STATE_ZIP>Isando, GP 1600</BUYER_CITY_STATE_ZIP>
    <BUYER_CONTACT_EMAIL>[email protected]</BUYER_CONTACT_EMAIL>
    <VENDOR_FAX>3925820</VENDOR_FAX>
    <TOTAL_AMOUNT>246,321.92</TOTAL_AMOUNT>
    <BUYER_COUNTRY>South Africa</BUYER_COUNTRY>
    <VENDOR_AREA_CODE>011</VENDOR_AREA_CODE>
    <LE_NAME>AI Health Care (Pty) LTD</LE_NAME>
    <LE_ADDR1>Coprporate Hill Office Park</LE_ADDR1>
    <LE_ADDR2>Willima Nicholl Drive</LE_ADDR2>
    <LE_TOWN_CITY>Bryanston</LE_TOWN_CITY>
    <LE_STAE_PROVINCE>GP</LE_STAE_PROVINCE>
    <LE_POSTALCODE>1768</LE_POSTALCODE>
    <LE_COUNTRY>South Africa</LE_COUNTRY>
    <DOCUMENT_CREATION_METHOD>AUTOCREATE</DOCUMENT_CREATION_METHOD>
    <DOCUMENT_TYPE>Standard Purchase Order</DOCUMENT_TYPE>
    <TEST_FLAG>D</TEST_FLAG>
    <DIST_SHIPMENT_COUNT>1</DIST_SHIPMENT_COUNT>
    <DOCUMENT_NAME>Standard Purchase Order 33832, 0</DOCUMENT_NAME>
    <SIGNED>F</SIGNED>
    <AMENDMENT_PROFILE>Y</AMENDMENT_PROFILE>
    <WITH_TERMS>N</WITH_TERMS>
    <IS_ATTACHED_DOC>Y</IS_ATTACHED_DOC>
    <HEADER_SHORT_TEXT>
    </HEADER_SHORT_TEXT>
    <LINES>
    <LINES_ROW>
    <ITEM_REVISION>0</ITEM_REVISION>
    <LINE_NUM>1</LINE_NUM>
    <ITEM_DESCRIPTION>Jar Labelled EA Purity Perf P/Jelly 350ml</ITEM_DESCRIPTION>
    <CANCEL_FLAG>Y</CANCEL_FLAG>
    <UNIT_MEAS_LOOKUP_CODE>Each</UNIT_MEAS_LOOKUP_CODE>
    <ORDER_TYPE_LOOKUP_CODE>QUANTITY</ORDER_TYPE_LOOKUP_CODE>
    <UNIT_PRICE>1.31</UNIT_PRICE>
    <QUANTITY>188032</QUANTITY>
    <PO_HEADER_ID>711318</PO_HEADER_ID>
    <PO_LINE_ID>1198098</PO_LINE_ID>
    <ITEM_ID>114606</ITEM_ID>
    <PRICE_TYPE_LOOKUP_CODE>FIXED</PRICE_TYPE_LOOKUP_CODE>
    <CLOSED_CODE>OPEN</CLOSED_CODE>
    <ORG_ID>1296</ORG_ID>
    <QTY_RCV_TOLERANCE>0</QTY_RCV_TOLERANCE>
    <OVER_TOLERANCE_ERROR_FLAG>WARNING</OVER_TOLERANCE_ERROR_FLAG>
    <FIRM_STATUS_LOOKUP_CODE>N</FIRM_STATUS_LOOKUP_CODE>
    <NEGOTIATED_BY_PREPARER_FLAG>N</NEGOTIATED_BY_PREPARER_FLAG>
    <LAST_UPDATE_DATE>10-DEC-2009 17:42:27</LAST_UPDATE_DATE>
    <LAST_UPDATED_BY>7794</LAST_UPDATED_BY>
    <LINE_TYPE_ID>1</LINE_TYPE_ID>
    <LAST_UPDATE_LOGIN>52339081</LAST_UPDATE_LOGIN>
    <CREATION_DATE>10-DEC-2009 17:42:27</CREATION_DATE>
    <CREATED_BY>7794</CREATED_BY>
    <CATEGORY_ID>1935</CATEGORY_ID>
    <LIST_PRICE_PER_UNIT>1.31</LIST_PRICE_PER_UNIT>
    <TAX_NAME>Std Vat 14%</TAX_NAME>
    <LINE_TYPE>QUANTITY</LINE_TYPE>
    <PURCHASE_BASIS>GOODS</PURCHASE_BASIS>
    <ITEM_NUM>53-60401-</ITEM_NUM>
    <LINE_AMOUNT>246,321.92</LINE_AMOUNT>
    <MATCHING_BASIS>QUANTITY</MATCHING_BASIS>
    <PRICE_DIFF>
    </PRICE_DIFF>
    <LINE_SHORT_TEXT>
    </LINE_SHORT_TEXT>
    <LINE_LOCATIONS>
    <LINE_LOCATIONS_ROW>
    <SHIPMENT_NUM>1</SHIPMENT_NUM>
    <DUE_DATE>22-JAN-2010 00:00:00</DUE_DATE>
    <QUANTITY>188032</QUANTITY>
    <PRICE_OVERRIDE>1.31</PRICE_OVERRIDE>
    <QUANTITY_CANCELLED>0</QUANTITY_CANCELLED>
    <TAXABLE_FLAG>Y</TAXABLE_FLAG>
    <PO_HEADER_ID>711318</PO_HEADER_ID>
    <PO_LINE_ID>1198098</PO_LINE_ID>
    <LINE_LOCATION_ID>1107035</LINE_LOCATION_ID>
    <SHIPMENT_TYPE>STANDARD</SHIPMENT_TYPE>
    <CONSIGNED_FLAG>N</CONSIGNED_FLAG>
    <RECEIVING_ROUTING_ID>2</RECEIVING_ROUTING_ID>
    <ACCRUE_ON_RECEIPT_FLAG>Y</ACCRUE_ON_RECEIPT_FLAG>
    <ORG_ID>1296</ORG_ID>
    <INSPECTION_REQUIRED_FLAG>N</INSPECTION_REQUIRED_FLAG>
    <RECEIPT_REQUIRED_FLAG>Y</RECEIPT_REQUIRED_FLAG>
    <QTY_RCV_TOLERANCE>0</QTY_RCV_TOLERANCE>
    <QTY_RCV_EXCEPTION_CODE>WARNING</QTY_RCV_EXCEPTION_CODE>
    <ENFORCE_SHIP_TO_LOCATION_CODE>WARNING</ENFORCE_SHIP_TO_LOCATION_CODE>
    <ALLOW_SUBSTITUTE_RECEIPTS_FLAG>N</ALLOW_SUBSTITUTE_RECEIPTS_FLAG>
    <DAYS_EARLY_RECEIPT_ALLOWED>0</DAYS_EARLY_RECEIPT_ALLOWED>
    <DAYS_LATE_RECEIPT_ALLOWED>0</DAYS_LATE_RECEIPT_ALLOWED>
    <RECEIPT_DAYS_EXCEPTION_CODE>WARNING</RECEIPT_DAYS_EXCEPTION_CODE>
    <INVOICE_CLOSE_TOLERANCE>0</INVOICE_CLOSE_TOLERANCE>
    <RECEIVE_CLOSE_TOLERANCE>0</RECEIVE_CLOSE_TOLERANCE>
    <SHIP_TO_ORGANIZATION_ID>1282</SHIP_TO_ORGANIZATION_ID>
    <CLOSED_CODE>OPEN</CLOSED_CODE>
    <ENCUMBERED_FLAG>N</ENCUMBERED_FLAG>
    <APPROVED_FLAG>N</APPROVED_FLAG>
    <LAST_UPDATE_DATE>10-DEC-2009 17:42:27</LAST_UPDATE_DATE>
    <LAST_UPDATED_BY>7794</LAST_UPDATED_BY>
    <LAST_UPDATE_LOGIN>52339081</LAST_UPDATE_LOGIN>
    <CREATION_DATE>10-DEC-2009 17:42:27</CREATION_DATE>
    <CREATED_BY>7794</CREATED_BY>
    <QUANTITY_RECEIVED>0</QUANTITY_RECEIVED>
    <QUANTITY_ACCEPTED>0</QUANTITY_ACCEPTED>
    <QUANTITY_REJECTED>0</QUANTITY_REJECTED>
    <QUANTITY_BILLED>0</QUANTITY_BILLED>
    <UNIT_MEAS_LOOKUP_CODE>Each</UNIT_MEAS_LOOKUP_CODE>
    <TAX_USER_OVERRIDE_FLAG>N</TAX_USER_OVERRIDE_FLAG>
    <MATCH_OPTION>R</MATCH_OPTION>
    <TAX_CODE_ID>10430</TAX_CODE_ID>
    <CALCULATE_TAX_FLAG>N</CALCULATE_TAX_FLAG>
    <VMI_FLAG>N</VMI_FLAG>
    <AMOUNT>246,321.92</AMOUNT>
    <AMOUNT_RECEIVED>0.00</AMOUNT_RECEIVED>
    <AMOUNT_BILLED>0.00</AMOUNT_BILLED>
    <AMOUNT_CANCELLED>0.00</AMOUNT_CANCELLED>
    <AMOUNT_ACCEPTED>0.00</AMOUNT_ACCEPTED>
    <AMOUNT_REJECTED>0.00</AMOUNT_REJECTED>
    <DROP_SHIP_FLAG>N</DROP_SHIP_FLAG>
    <SHIP_TO_LOCATION_ID>71695</SHIP_TO_LOCATION_ID>
    <SHIP_TO_LOCATION_NAME>23M CS Isando Personal Care</SHIP_TO_LOCATION_NAME>
    <SHIP_TO_ADDRESS_LINE1>23M CS Isando Personal</SHIP_TO_ADDRESS_LINE1>
    <SHIP_TO_ADDRESS_LINE2>22 Purlin Road</SHIP_TO_ADDRESS_LINE2>
    <SHIP_TO_ADDRESS_INFO>Isando, GP 1600</SHIP_TO_ADDRESS_INFO>
    <SHIP_TO_COUNTRY>South Africa</SHIP_TO_COUNTRY>
    <NEED_BY_DATE>22-JAN-2010 00:00:00</NEED_BY_DATE>
    <LINE_LOC_SHORT_TEXT>
    </LINE_LOC_SHORT_TEXT>
    <DISTRIBUTIONS>
    <DISTRIBUTIONS_ROW>
    <AMOUNT_DELIVERED>0.00</AMOUNT_DELIVERED>
    <AMOUNT_CANCELLED>0.00</AMOUNT_CANCELLED>
    <DISTRIBUTION_TYPE>STANDARD</DISTRIBUTION_TYPE>
    <PROJECT_ACCOUNTING_CONTEXT>No</PROJECT_ACCOUNTING_CONTEXT>
    <ACCRUE_ON_RECEIPT_FLAG>Y</ACCRUE_ON_RECEIPT_FLAG>
    <ORG_ID>1296</ORG_ID>
    <DESTINATION_TYPE_CODE>INVENTORY</DESTINATION_TYPE_CODE>
    <DESTINATION_ORGANIZATION_ID>1282</DESTINATION_ORGANIZATION_ID>
    <ACCRUAL_ACCOUNT_ID>57175</ACCRUAL_ACCOUNT_ID>
    <VARIANCE_ACCOUNT_ID>117936</VARIANCE_ACCOUNT_ID>
    <PREVENT_ENCUMBRANCE_FLAG>N</PREVENT_ENCUMBRANCE_FLAG>
    <PO_DISTRIBUTION_ID>1160340</PO_DISTRIBUTION_ID>
    <LAST_UPDATE_DATE>10-DEC-2009 17:42:27</LAST_UPDATE_DATE>
    <LAST_UPDATED_BY>7794</LAST_UPDATED_BY>
    <PO_HEADER_ID>711318</PO_HEADER_ID>
    <PO_LINE_ID>1198098</PO_LINE_ID>
    <LINE_LOCATION_ID>1107035</LINE_LOCATION_ID>
    <SET_OF_BOOKS_ID>1</SET_OF_BOOKS_ID>
    <CODE_COMBINATION_ID>57172</CODE_COMBINATION_ID>
    <QUANTITY_ORDERED>188032</QUANTITY_ORDERED>
    <LAST_UPDATE_LOGIN>52339081</LAST_UPDATE_LOGIN>
    <CREATION_DATE>10-DEC-2009 17:42:27</CREATION_DATE>
    <CREATED_BY>7794</CREATED_BY>
    <QUANTITY_DELIVERED>0</QUANTITY_DELIVERED>
    <QUANTITY_BILLED>0</QUANTITY_BILLED>
    <QUANTITY_CANCELLED>0</QUANTITY_CANCELLED>
    <REQ_DISTRIBUTION_ID>1124422</REQ_DISTRIBUTION_ID>
    <DELIVER_TO_LOCATION_ID>71695</DELIVER_TO_LOCATION_ID>
    <DELIVER_TO_PERSON_ID>4585</DELIVER_TO_PERSON_ID>
    <RATE_DATE>10-DEC-2009 00:00:00</RATE_DATE>
    <AMOUNT_BILLED>0.00</AMOUNT_BILLED>
    <ACCRUED_FLAG>N</ACCRUED_FLAG>
    <ENCUMBERED_FLAG>N</ENCUMBERED_FLAG>
    <RECOVERABLE_TAX>34,485.07</RECOVERABLE_TAX>
    <NONRECOVERABLE_TAX>0.00</NONRECOVERABLE_TAX>
    <RECOVERY_RATE>100.00</RECOVERY_RATE>
    <DESTINATION_CONTEXT>INVENTORY</DESTINATION_CONTEXT>
    <DISTRIBUTION_NUM>1</DISTRIBUTION_NUM>
    <CHARGE_ACCOUNT>53-230-999-84-7220-0000</CHARGE_ACCOUNT>
    <FULL_NAME>Mokoena, Johanna</FULL_NAME>
    <EMAIL_ADDRESS>[email protected]</EMAIL_ADDRESS>
    <REQUESTER_DELIVER_FIRST_NAME>Johanna</REQUESTER_DELIVER_FIRST_NAME>
    <REQUESTER_DELIVER_LAST_NAME>Mokoena</REQUESTER_DELIVER_LAST_NAME>
    </DISTRIBUTIONS_ROW>
    </DISTRIBUTIONS>
    </LINE_LOCATIONS_ROW>
    </LINE_LOCATIONS>
    </LINES_ROW>
    </LINES>
    <ADDRESS_DETAILS>
    <ADDRESS_DETAILS_ROW>
    <LOCATION_ID>71695</LOCATION_ID>
    <ADDRESS_STYLE>ZA_GLB</ADDRESS_STYLE>
    <ADDR_LABEL_1>Address Line 1</ADDR_LABEL_1>
    <ADDR_LABEL_2>Address Line 2</ADDR_LABEL_2>
    <ADDR_LABEL_3>Address Line 3</ADDR_LABEL_3>
    <ADDR_LABEL_4>Address Line 4</ADDR_LABEL_4>
    <ADDR_LABEL_5>Town / City</ADDR_LABEL_5>
    <ADDR_LABEL_6>Postal Code</ADDR_LABEL_6>
    <ADDR_LABEL_7>Province</ADDR_LABEL_7>
    <ADDR_LABEL_8>Country</ADDR_LABEL_8>
    <ADDR_DATA_1>23M CS Isando Personal</ADDR_DATA_1>
    <ADDR_DATA_2>22 Purlin Road</ADDR_DATA_2>
    <ADDR_DATA_5>Isando</ADDR_DATA_5>
    <ADDR_DATA_6>1600</ADDR_DATA_6>
    <ADDR_DATA_7>GP</ADDR_DATA_7>
    <ADDR_DATA_8>ZA</ADDR_DATA_8>
    </ADDRESS_DETAILS_ROW>
    <ADDRESS_DETAILS_ROW>
    <LOCATION_ID>78573</LOCATION_ID>
    <ADDRESS_STYLE>ZA_GLB</ADDRESS_STYLE>
    <ADDR_LABEL_1>Address Line 1</ADDR_LABEL_1>
    <ADDR_LABEL_2>Address Line 2</ADDR_LABEL_2>
    <ADDR_LABEL_3>Address Line 3</ADDR_LABEL_3>
    <ADDR_LABEL_4>Address Line 4</ADDR_LABEL_4>
    <ADDR_LABEL_5>Town / City</ADDR_LABEL_5>
    <ADDR_LABEL_6>Postal Code</ADDR_LABEL_6>
    <ADDR_LABEL_7>Province</ADDR_LABEL_7>
    <ADDR_LABEL_8>Country</ADDR_LABEL_8>
    <ADDR_DATA_1>P O Box 527</ADDR_DATA_1>
    <ADDR_DATA_5>Paarl</ADDR_DATA_5>
    <ADDR_DATA_6>7620</ADDR_DATA_6>
    <ADDR_DATA_8>ZA</ADDR_DATA_8>
    </ADDRESS_DETAILS_ROW>
    <ADDRESS_DETAILS_ROW>
    <LOCATION_ID>71715</LOCATION_ID>
    <ADDRESS_STYLE>ZA_GLB</ADDRESS_STYLE>
    <ADDR_LABEL_1>Address Line 1</ADDR_LABEL_1>
    <ADDR_LABEL_2>Address Line 2</ADDR_LABEL_2>
    <ADDR_LABEL_3>Address Line 3</ADDR_LABEL_3>
    <ADDR_LABEL_4>Address Line 4</ADDR_LABEL_4>
    <ADDR_LABEL_5>Town / City</ADDR_LABEL_5>
    <ADDR_LABEL_6>Postal Code</ADDR_LABEL_6>
    <ADDR_LABEL_7>Province</ADDR_LABEL_7>
    <ADDR_LABEL_8>Country</ADDR_LABEL_8>
    <ADDR_DATA_1>Corporate Hill Office Park</ADDR_DATA_1>
    <ADDR_DATA_2>William Nicholl Drive</ADDR_DATA_2>
    <ADDR_DATA_5>Bryanston</ADDR_DATA_5>
    <ADDR_DATA_6>1768</ADDR_DATA_6>
    <ADDR_DATA_7>GP</ADDR_DATA_7>
    <ADDR_DATA_8>ZA</ADDR_DATA_8>
    </ADDRESS_DETAILS_ROW>
    <ADDRESS_DETAILS_ROW>
    <LOCATION_ID>71699</LOCATION_ID>
    <ADDRESS_STYLE>ZA_GLB</ADDRESS_STYLE>
    <ADDR_LABEL_1>Address Line 1</ADDR_LABEL_1>
    <ADDR_LABEL_2>Address Line 2</ADDR_LABEL_2>
    <ADDR_LABEL_3>Address Line 3</ADDR_LABEL_3>
    <ADDR_LABEL_4>Address Line 4</ADDR_LABEL_4>
    <ADDR_LABEL_5>Town / City</ADDR_LABEL_5>
    <ADDR_LABEL_6>Postal Code</ADDR_LABEL_6>
    <ADDR_LABEL_7>Province</ADDR_LABEL_7>
    <ADDR_LABEL_8>Country</ADDR_LABEL_8>
    <ADDR_DATA_1>Coprporate Hill Office Park</ADDR_DATA_1>
    <ADDR_DATA_2>Willima Nicholl Drive</ADDR_DATA_2>
    <ADDR_DATA_5>Bryanston</ADDR_DATA_5>
    <ADDR_DATA_6>1768</ADDR_DATA_6>
    <ADDR_DATA_7>GP</ADDR_DATA_7>
    <ADDR_DATA_8>ZA</ADDR_DATA_8>
    </ADDRESS_DETAILS_ROW>
    </ADDRESS_DETAILS>
    </PO_DATA>
    I'm really stumped. I tried using the choose when clause but it doesn't work as I think it isreading the wrong cancel flag.
    Any help will be much appreciated.
    Thanks, Ash

    have to see your for-each statements.
    and you can do it, by using .. to go up one level
    example from current level to go up4 level up ../../../../CUSTOM_FLAG
    ../../../CUSTOM_FLAG three lvl up.
    Need to know the cancel_flag element you said, i can see only one :) in the given xml.

  • Cancel_flag in PO Output for Communication report

    I'm trying to build logic into an RTF template for the "PO Output for Communication" report to handle cancelled lines. The cancel_flag can be set to "Y" at any of 3 levels - PO Header, PO Line and PO shipment. The field is called the same thing (cancel_flag) at all 3 levels but it doesn't always exist at all 3 levels. What do I call the field in my "IF" statement, so that it is looking at the correct field? Right now, if I am at the line level and I want to check the cancel_flag, if it doesn't exist, it looks at the cancel_flag at the shipment level.

    have to see your for-each statements.
    and you can do it, by using .. to go up one level
    example from current level to go up4 level up ../../../../CUSTOM_FLAG
    ../../../CUSTOM_FLAG three lvl up.
    Need to know the cancel_flag element you said, i can see only one :) in the given xml.

  • Bursting Control file, Error!! Could not deliver the output for Delivery

    Hi,
    I am using bursting control file to send report output to email in R12.1.3.
    If the report output is having data, it is working fine. if there is no data it is getting errored out with the below message.
    "Error!! Could not deliver the output for Delivery channel:null "
    In the report output i put "No data found", when i click on view output the output in application is showing as "NO DATA FOUND" in PDF .
    "Bursting VMC Approved Purchase Orders for a period (XML Publisher Report Bursting Program)" got above error.
    my requirement is if there is no data, still i require the output to email.
    Thanks in Advance
    Adina.

    Hi,
    I am facing the same situation and want the bursting program to finish in normal even when there is no data.
    Can you please let me know how you resolved this?
    Thanks
    RG

  • Issue in PDF output for xml report

    Hi,
    I developed one template in RTF and output in pdf is looks fine.
    I have issue in the output, For some invoices i have more lines,when the line details comes to next page for the same invoice i can able to view only the lines information in the next pages for the same invoice without any header details.
    I need header information too if the lines comes to the next page.
    i given <G_Headers> in the top of the page and <End for each> in the end of the page.
    please how to resolve this issue.
    with regards
    Ram

    There are lot of ways of doing this,
    Simple one is given here.
    If you are using table to display the rows, there is option in word table properties, to repeat the header in each page,
    Repeating table headers
    If your data is displayed in a table, and you expect the table to extend across
    multiple pages, you can define the header rows that you want to repeat at the start
    of each page.
    1. Select the row(s) you wish to repeat on each page.
    2. From the Table menu, select Heading Rows Repeat
    Check out in user guide.

  • Z table for Closing Stock

    Hi ,
    My  requirement is to make Z table for closing stock.
    As ours is a pharma firm  and we have implemented SAP in Aug 2008.
    Now for  closing stk  we are using S033 and MSEG table to get opening stk
    SELECT SUM( mzubb ) SUM( magbb ) INTO (w_dr_menge , w_cr_menge)
            FROM s033
           WHERE sptag < so_fkdat-low
             AND werks = werks
             AND matnr = matnr.
      w_opening_balance = w_dr_menge - w_cr_menge.
    and for closing stk = opening stk - sale + receive.
    Now the problem is  when we want to retrieve data for closing stk for last month ,it is checking all the records since Aug 2008  for opening stk and it is taking too much time to retrieve data.
    Can anyone plz suggest any alternative for thsi problem.
    I will really appriciate your help.
    Regards,
    Archana

    Hi
    done this before. for sure you will experience an performance problem in your current setup. what we did is we create a program that calculates the ending inventory of the month then beginning inventory of the following month we are executing this in every end of the month. In that case when we need to access the previous month the ztable must be use. make sure that your program can do rerun of the ending and beginning of stock because there are chances of previous posting of reversals.
    Thanks,
    Best regards,
    Etrafanob

  • How to call the XML Publisher Report thro Standard PO Output for Comm.

    Hi
    We need to call our custom report(XML Publisher Report) from the standard PO Output for Communication Report.
    There is a parameter(Purchase Order Layout) in PO Output for Communication in which we can see no. of standard reports. We want to add our custom report in that list so that when we will run this standard report by selecting our custom report for Purchase Order Layout parameter, we should get the output as per our Custom report.
    Since PO Output for Communication is a Java Concurrent Program, we are not able to place our custom report in the list of Purchase Order layout Parameter.
    Ram

    Welcome to the forums !
    Pl see if MOS Doc 305307.1 (How To Modify Print PO Report POXPOPDF With Custom Template) can help
    HTH
    Srini

  • Excel output for the xml publisher report when it is [b]scheduled [/b]

    How to get the excel output for the xml publisher report when it is scheduled by a apps user? Like what is the user profile option (for the apps user who runs the report) and what are the other things that needs to be taken care of so that only this xml publisher report run by this apps user produces a EXCEL output (When scheduled) ???
    Really appreciate it if any one can help me in this regards.
    Thanks
    Munna

    Hi Munna,
    For eBusiness Suite (apps user) the report output is stored the same way whether executed immediately or scheduled.,To get excel set the options > output format to Excel. Only the user that submitted the report can view it, or you can get the output file from the server. Or you can set the notify option so that a Workflow Notification is sent when the request completes.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

Maybe you are looking for

  • Lost data

    I did a hot sync from my Z22 to Palm desktop on my pc.  All data was lost except for a few repeated activities.  I received the following message on the hot sync log:  -- Calendar - Some handheld records were not copied to your PC. Your computer may

  • [SOLVED]netctl-auto no longer working

    Can some kind person point me in the right direction to fix this? Seems to have stopped working after latest upgrade.  Manually netctl start works OK.  Haven't been able to find the solution in man pages or googling. [email protected] - Automatic wir

  • Apple tv no longer showing when powered off

    I just updated my apple tv a couple days ago and now unless I power the apple tv on separately, it does not show up in itunes or my wireless devices' remote app. Once I power it up, everything is fine but it used to show up even when it was off (thus

  • Cannot Mount Database - Few Clues

    Hi. We had an unintentional reboot from one of our small Windows servers, after a Windows Update (I know, it should not be automatic). Since then, our database does not mount anymore. When I try to mount I get ORA-03113 (end-of-file…). The controlfil

  • Windows Server Technical Preview - RDS - RemoteFX 3D

    Hi Windows Server Team, I am having an issue with the Windows Server Tech Preview and Remotefx 3D. I installed the RDS role and have it all configured with no problems. I loaded a VM of Windows 10 Enterprise Tech Preview. It works fine, however when