Return not linking

Hi Experts
My client has an issue (its not happening all the time but i cant seem to replicate it). Sometimes when copying a return document from a delivery note, it creates the return and states the base document numbers in the remarks of the return. but when opening the return, the button to see base document is greyed out. When the account department process the invoice, the whole sales order comes up - instead of the items which were not returned.
So in other words, if you look at the remarks on the return doc, it looks like it is linked to the delivery but it actually isn't linking.
they are on SAP 8.8 PL19
your help would be greatly appreciated.

Hi Bradly.........
The reason behind why Document does not create link with its base document is
1.If you copy the Return from Delivery and manually changed Item in Return then Link Breaks up but its remark remain same.
2.If you copy the Return from Delivery and manually changed Business Partner in Return then Link Breaks up but its remark remain same.
3.If you have the return document with same documnet No. but for other series of previous FY then it may possible that you are seeing wrong return Document.
4.If all those above you are not doing then it might be a bug into the system......
Regards,
Rahul

Similar Messages

  • Looking for Notes linked to a CustomObject1 return nothing

    I am trying to get the notes linked to a CustomObject1, and I get only empty results.
    I have created a note linked to a CustomObject1.
    I have Exported it, in order to check that it was properly created and to get the row id.
    I have Created a SOAP request like below:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns7742="http://tempuri.org"><SOAP-ENV:Body><NoteWS_NoteQueryPage_Input xmlns="urn:crmondemand/ws/note/"><PageSize>100</PageSize><ListOfNote><Note><NoteId>='AEFA-74XW77'</NoteId><OwnerId></OwnerId><ParentNoteId></ParentNoteId><ReadFlag></ReadFlag><SourceName></SourceName><SourceId></SourceId><SourceType></SourceType></Note></ListOfNote><StartRowNum>0</StartRowNum></NoteWS_NoteQueryPage_Input></SOAP-ENV:Body></SOAP-ENV:Envelope>
    and I have received the following response:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><ns:NoteWS_NoteQueryPage_Output xmlns:ns="urn:crmondemand/ws/note/"><ns:LastPage>true</ns:LastPage><ListOfNote xmlns="urn:/crmondemand/xml/note"></ListOfNote></ns:NoteWS_NoteQueryPage_Output></SOAP-ENV:Body></SOAP-ENV:Envelope>
    I have tried to use as filter the Subject and the OwnerId with the same empty results.
    Could you please give me any suggestions
    Thanks

    Hi Enzo,
    I think it's best if I reply to your previous message point by point:)
    Thank you very much for your feedback, I think your point of view is pretty clear.
    Moreover Your assumption is perfect and correct beside the very last two words, my idea consists in specifying the CO1Id value instead of the NOteId one.
    [SD] Sorry about that
    Actually I am a little bit disappointed because it is not possible to get every kind of Note.
    [SD] Understood, we are working towards expanding our field and object coverage for WS
    Anyway I have tried several tests just to try to understand how NoteQueryPage ws works.
    1. Sending a note to a CRM user via message center (I was able to see the note via ws)
    2. Replying back to the previous user (I was not able to see the note via ws)
    3. Replying back again to the previous user (I was able to see the note via ws with ParentNoteId filled properly)
    So I do not know why test 2 failed.
    [SD] Which credentials did you use for this test? Perhaps you used the credentials of the user that was replying? If so, I don't believe you would see the Note.
    4. adding a note to a SR (I was not able to see the note via ws)
    5. subscribing to the SR note I have tryied again to create a note (I was not able to see the note via ws)
    6. to the SR I have attached another note using a different user (I was not able to see the note via ws)
    Basically, I was never able to see a note with fields: SourceName, SourceId and SourceType filled.
    [SD] I was able to do this successfully, please try the following steps:
    Login as UserA
    1) Create a new CO1 record called MessageCenterTest1. Save.
    2) Press the Subscribe button on CO1 record named MessageCenterTest1.
    3) Add a note to MessageCenterTest1.
    4) Query for all Notes (you should not see this note in the results, nor should you see it in your message center via the UI)
    5) Logout.
    Login as UserB
    6) Add a note to CO1.
    7) Query for all Notes (using UserA credentials), this note should now appear in the result with the SourceName, SourceId and SourceType fields filled.
    QUERY:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns7742="http://tempuri.org"><SOAP-ENV:Body><NoteWS_NoteQueryPage_Input xmlns="urn:crmondemand/ws/note/"><PageSize>100</PageSize><ListOfNote><Note><Subject></Subject><NoteId></NoteId><OwnerId></OwnerId><ParentNoteId></ParentNoteId><ReadFlag></ReadFlag><SourceName></SourceName><SourceId></SourceId><Note></Note><CreatedBy/><SourceType></SourceType></Note></ListOfNote><StartRowNum>0</StartRowNum></NoteWS_NoteQueryPage_Input></SOAP-ENV:Body></SOAP-ENV:Envelope>
    RESPONSE (trimmed a bit for brevity):
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><ns:NoteWS_NoteQueryPage_Output xmlns:ns="urn:crmondemand/ws/note/"><ns:LastPage>true</ns:LastPage><ListOfNote xmlns="urn:/crmondemand/xml/note">...<Note><NoteId>1QA2-RRF8C</NoteId><OwnerId>1-CWTEQ</OwnerId><Note>Added by userB</Note><ParentNoteId>1QA2-RRF8B</ParentNoteId><CreatedBy>UserB, 12/10/2009 22:11:32</CreatedBy><ReadFlag>N</ReadFlag><Subject>TestNote2</Subject>*<SourceName>MessageCenterTest1</SourceName><SourceId>1QA2-RRF6Y</SourceId><SourceType>Custom Object 1</SourceType>*</Note></ListOfNote></ns:NoteWS_NoteQueryPage_Output></SOAP-ENV:Body></SOAP-ENV:Envelope>
    8) Query for all Notes (using UserB credentials), you should not see this note in the result set.
    if there is not a way to get values for fields SourceName, SourceId and SourceType why they are defined in the wsdl?
    [SD] See above steps
    For these reasons I am saying the NoteQueryPage ws seems having bugs.
    On web services documentation I did not find a word saying only a notes subset is accessible via Note ws.
    [SD] From the WS User Guide (emphasis added by me):
    "The note object stores information about *the notes available in the Message Center* in the Oracle CRM
    On Demand application. The *notes can be sent from users or can store extra information (as a note)
    on a parent object.* This allows employees who are working on a particular record to add extra
    information as they see fit. For example, when talking to a contact, an employee might notice that
    the contact is not happy with a service provided. The employee can record this information in a note
    so that any other employees who talk to the contact are aware of the contact’s dissatisfaction.
    The note object has no child components."
    Finally I really do not understand why only some notes should be accessible via ws.
    [SD] I think the source of the confusion is that the Note WSDL is actually an interface for Message Center specifically. There are other parent objects (i.e. Account) which do have a ListOfNote child which exposes all of their child notes via WS.
    BTW: the message center is working perfectly...
    [SD] Glad to hear it. One thing that I'd like you to consider is whether you see any discrepancies between the result set you are seeing via WS and the set of notes you see in the Message Center in the UI. These two sets of records should be the same.

  • Data is not linked to material wise

    Hi experts,
    In this Report data is not linked to material wise.
    it comming merge the all the materials in one material.
    TYPE-POOLS: SLIS.
    TABLES: MKPF,LFA1,MSEG,EKET,T001L,MAKT,S031,S032,MARA,LIPS,LIKP,T001W.
    DATA  FLAG TYPE I.
    DATA : MENGE_RE LIKE MSEG-MENGE,
           MENGE_IS LIKE MSEG-MENGE,
           MENGE_O LIKE MSEG-MENGE,
           MENGE_BAL LIKE MSEG-MENGE.
    DATA  MAGBB LIKE S031-MAGBB.
    DATA : F_LNO LIKE SY-LINNO,
           S_LNO LIKE SY-LINNO,
           V_LNO LIKE SY-LINNO.
    DATA  MZUBB LIKE S031-MZUBB.
    DATA  V_MONTH LIKE S031-SPMON.
    DATA  XBLNR LIKE MKPF-XBLNR.
    DATA : BEGIN OF ITAB1 OCCURS 100,
           MATNR LIKE MAKT-MATNR,
           END OF ITAB1.
    DATA : BEGIN OF ITAB2 OCCURS 100,
    MATNR LIKE MAKT-MATNR,
    WERKS LIKE MARD-WERKS,
    LGORT LIKE MARD-LGORT,
    BUSTW LIKE MSEG-BUSTW,
    BWART LIKE MSEG-BWART,
    SHKZG LIKE MSEG-SHKZG,
    MENGE LIKE MSEG-MENGE,
    END OF ITAB2.
    DATA: PAGNO(5) TYPE C.
    DATA : PAGENO LIKE SY-PAGNO.
    DATA: STR1 TYPE DATS,
          STR2(14) TYPE C,
          STR3(10) TYPE C.
    DATA : V_MONUM LIKE T015M-MONUM,
           V_MONAM LIKE T015M-MONAM.
    DATA : V_PAGENO LIKE SY-PAGNO.
    TYPES:  FARBE TYPE SLIS_T_SPECIALCOL_ALV.
    DATA  V_STOCK LIKE MSEG-MENGE.
    DATA  V_STOCK1 LIKE MSEG-MENGE.
    DATA: V_MONTH1 LIKE S031-SPMON.
    DATA: OSTOCK LIKE MSEG-MENGE.
    DATA : FLAG6 TYPE C,
      V_PAGENO1 LIKE SY-PAGNO,
      V_PAGENO2 LIKE SY-PAGNO.
    DATA: FLD(15).
    DATA: TXT(50).
    DATA: FLAG5.
    I N I T I A L I Z A T I O N
    *GT_REPID = SY-REPID.
    PAGNO = SY-PAGNO.
    A T  S E L E C T I O N  S C R E E N
    AT SELECTION-SCREEN.
    *AT SELECTION-SCREEN ON BUDAT.
    PERFORM VALIDATION.
    S T A R T O F S E L E C T I O N
    START-OF-SELECTION.
    SET MARGIN 5.
    PERFORM FETCH_DATA.
    PERFORM WRITE_REPORT.
    PERFORM STOCK.
    E N D O F S E L E C T I O N
    END-OF-SELECTION.
    Report Selections
      DATA: BEGIN OF IT_HEADER OCCURS 10,
      WERKS LIKE MSEG-WERKS,
      NAME1 LIKE T001W-NAME1,
      MAKTX LIKE MAKT-MAKTX,
      MATNR LIKE MSEG-MATNR,
      MENGE_O LIKE MSEG-MENGE,
      END OF IT_HEADER.
      DATA: BEGIN OF ITAB OCCURS 50,
            WERKS LIKE MSEG-WERKS,
            MATNR LIKE MSEG-MATNR,
            BWART LIKE MSEG-BWART,
            LGORT LIKE MSEG-LGORT,
            EBELN LIKE MSEG-EBELN,
            XBLNR LIKE MKPF-XBLNR,
            BUDAT LIKE MKPF-BUDAT,
            MBLNR LIKE MSEG-MBLNR,
            MENGE LIKE MSEG-MENGE,
            MAKTX LIKE MAKT-MAKTX,
            XAUTO LIKE MSEG-XAUTO,
            NAME1 LIKE T001W-NAME1,
            MENGE_O LIKE MSEG-MENGE,
            SHKZG LIKE MSEG-SHKZG,
            MENGE_IS LIKE MSEG-MENGE,
            MENGE_RE LIKE MSEG-MENGE,
      END OF ITAB.
      DATA: BEGIN OF INT_DATA OCCURS 50,
            WERKS LIKE MSEG-WERKS,
            MATNR LIKE MSEG-MATNR,
            BWART LIKE MSEG-BWART,
            XBLNR LIKE MKPF-XBLNR,
            MBLNR LIKE MSEG-MBLNR,
            BUDAT LIKE MKPF-BUDAT,
            MAKTX LIKE MAKT-MAKTX,
            MENGE_O LIKE MSEG-MENGE,
            MENGE_R LIKE MSEG-MENGE,
            MENGE_TO LIKE MSEG-MENGE,
            MENGE_TI LIKE MSEG-MENGE,
            MENGE_S LIKE MSEG-MENGE,
            MENGE_ST LIKE MSEG-MENGE,
            MENGE_AD LIKE MSEG-MENGE,
            MENGE_RT LIKE MSEG-MENGE,
            MENGE_C LIKE MSEG-MENGE,
            MENGE_CL LIKE MSEG-MENGE,
            MENGE_BAL LIKE MSEG-MENGE,
            MENGE_CR LIKE MSEG-MENGE,
            NAME1 LIKE T001W-NAME1,
            MENGE_RE LIKE MSEG-MENGE,
            MENGE_IS LIKE MSEG-MENGE,
            MENGE_BAL1 LIKE MSEG-MENGE,
            SHKZG LIKE MSEG-SHKZG,
             MENGE LIKE MSEG-MENGE,
             LGORT LIKE MSEG-LGORT,
            END OF INT_DATA.
      DATA: BEGIN OF INT_DATA1 OCCURS 50,
             WERKS LIKE MSEG-WERKS,
             MATNR LIKE MSEG-MATNR,
             BWART LIKE MSEG-BWART,
             MENGE_ST LIKE MSEG-MENGE,
             MENGE_O LIKE MSEG-MENGE,
             WAMNG LIKE EKET-WAMNG,
             WEMNG LIKE EKET-WEMNG,
             MENGE LIKE MSEG-MENGE,
             RETPO LIKE EKPO-RETPO,
             UMREN LIKE EKPO-UMREN,
             UMREZ LIKE EKPO-UMREZ,
             BSTMG LIKE EKPO-MENGE,
             XBLNR LIKE MKPF-XBLNR,
       END OF INT_DATA1.
      DATA: BEGIN OF INT_DATA2 OCCURS 50,
             WERKS LIKE MSEG-WERKS,
             LGORT LIKE S031-LGORT,
             MATNR LIKE MSEG-MATNR,
             BWART LIKE MSEG-BWART,
             MENGE_IS LIKE MSEG-MENGE,
             MBWBEST LIKE S032-MBWBEST,
             MAKTX LIKE MAKT-MAKTX,
       END OF INT_DATA2.
      DATA:V_GJAHR LIKE MKPF-BUDAT.
      SELECTION-SCREEN BEGIN OF BLOCK 0 WITH FRAME TITLE TEXT-064.
      SELECT-OPTIONS:
      MATNR FOR MSEG-MATNR,
      MATKL FOR MARA-MATKL OBLIGATORY,
      WERKS FOR MSEG-WERKS OBLIGATORY,
      LGORT FOR MSEG-LGORT,
    *CHARG FOR MSEG-CHARG,
      BWART FOR MSEG-BWART,
    *LIFNR FOR LFA1-LIFNR,
    *WADAT FOR LIKP-WADAT_IST,
      S_DATE FOR MKPF-BUDAT.
      SELECTION-SCREEN END OF BLOCK 0.
    TOP-OF-PAGE.
    PERFORM HEADER_WRITE.
    FORM FETCH_DATA .
    SELECT
         MATNR            " Material Number
         WERKS            " Plant
      INTO TABLE IT_HEADER
      FROM MSEG
      WHERE MATNR = IT_HEADER-MATNR AND
      WERKS = IT_HEADER-WERKS.
      STR3 = S_DATE-LOW+0(4).
      SELECT * FROM MARA INTO CORRESPONDING FIELDS OF TABLE ITAB1
                         WHERE MATNR IN MATNR AND
                         MATKL IN MATKL.
      SELECT MATNR WERKS LGORT
                         INTO TABLE ITAB2
                         FROM MARD FOR ALL ENTRIES IN ITAB1
                         WHERE WERKS IN WERKS AND
                               LGORT IN LGORT AND
                               MATNR = ITAB1-MATNR.
      SELECT SINGLE NAME1 FROM T001W INTO INT_DATA-NAME1
           WHERE WERKS = INT_DATA-WERKS.
      LOOP AT ITAB2.
        SELECT M~MATNR M~WERKS M~LGORT M~MENGE M~MBLNR  M~MJAHR M~XAUTO M~SHKZG
                       M~BWART M~EBELN N~BUDAT N~XBLNR S~NAME1
                       INTO CORRESPONDING FIELDS OF ITAB
                       FROM   MSEG AS M INNER JOIN MKPF AS N ON
                              M~MBLNR = N~MBLNR
                              AND M~MJAHR = N~MJAHR
                            INNER JOIN T001W AS S ON
                              M~WERKS = S~WERKS
                          WHERE N~BUDAT IN S_DATE AND
                             M~WERKS = ITAB2-WERKS AND
                             M~LGORT = ITAB2-LGORT AND
                             M~MATNR = ITAB2-MATNR AND
                    M~BWART IN BWART.
          APPEND ITAB.
          CLEAR ITAB.
        ENDSELECT.
        IF SY-SUBRC NE 0.
          ITAB-MATNR = ITAB2-MATNR.
          ITAB-WERKS = ITAB2-WERKS.
          ITAB-LGORT = ITAB2-LGORT.
          ITAB-BWART = ITAB2-BWART.
          APPEND ITAB.
        ENDIF.
        CLEAR: ITAB2,ITAB.
      ENDLOOP.
      DELETE ADJACENT DUPLICATES FROM ITAB2 COMPARING MATNR WERKS .
      V_MONTH = S_DATE-LOW+0(6).
      SELECT * INTO CORRESPONDING FIELDS OF TABLE INT_DATA2
               FROM S032 FOR ALL ENTRIES IN ITAB2
               WHERE MATNR = ITAB2-MATNR
                     AND WERKS   = ITAB2-WERKS
                     AND LGORT   = SPACE
                     AND   MBWBEST <> SPACE.
      LOOP AT INT_DATA2 .
        SELECT SINGLE *  FROM S031
                         WHERE MATNR = INT_DATA2-MATNR AND
                               WERKS = INT_DATA2-WERKS AND
                               LGORT = SPACE AND
                               SPMON GT V_MONTH.
        MODIFY INT_DATA2.
        CLEAR: INT_DATA2, S031.
      ENDLOOP.
      DELETE INT_DATA WHERE MENGE_O IS INITIAL .
      DELETE ADJACENT DUPLICATES FROM INT_DATA COMPARING XBLNR MATNR MAKTX.
      V_MONTH1 = S_DATE-LOW+0(6).
      SORT ITAB BY  MATNR  WERKS  XBLNR .
      LOOP AT ITAB.
        XBLNR = ITAB-XBLNR.
        INT_DATA-MENGE = ITAB-MENGE.
        INT_DATA-BWART = ITAB-BWART.
        INT_DATA-XBLNR = ITAB-XBLNR.
        INT_DATA-BUDAT = ITAB-BUDAT.
        INT_DATA-MATNR = ITAB-MATNR.
        INT_DATA-MBLNR = ITAB-MBLNR.
        INT_DATA-MENGE = ITAB-MENGE.
        INT_DATA-SHKZG = ITAB-SHKZG.
        INT_DATA-MENGE_IS = ITAB-MENGE_IS.
        INT_DATA-MENGE_RE = ITAB-MENGE_RE.
        INT_DATA-MENGE_O = ITAB-MENGE_O.
        INT_DATA-NAME1 = ITAB-NAME1.
        IF FLAG = 1.
          PERFORM GET_OPENING_STOCK.
        ENDIF.
        INT_DATA-MENGE_O = OSTOCK.
        CASE ITAB-BWART.
          WHEN '101'.
            IF INT_DATA-SHKZG = 'S'.
              INT_DATA-MENGE_R = INT_DATA-MENGE_R + ITAB-MENGE.
            ENDIF.
          WHEN  '453'.
            IF INT_DATA-SHKZG = 'S'.
              IF ITAB-XAUTO = 'X'.
                INT_DATA-MENGE_RT = INT_DATA-MENGE_RT + ITAB-MENGE.
              ENDIF.
            ENDIF.
          WHEN '351' OR '641'.
           IF ITAB-LGORT = 0.
             INT_DATA-MENGE_R = INT_DATA-MENGE_R + ITAB-MENGE.
           ELSE.
             INT_DATA-MENGE_TO = INT_DATA-MENGE_TO + ITAB-MENGE.
           ENDIF.
          WHEN '602' OR '642'.
            IF INT_DATA-SHKZG = 'S'.
              IF ITAB-LGORT = 0.
                INT_DATA-MENGE_CL = INT_DATA-MENGE_CL + ITAB-MENGE.
              ENDIF.
            ENDIF.
          WHEN '552' OR '310'.
            IF INT_DATA-SHKZG = 'S'.
              INT_DATA-MENGE_AD = INT_DATA-MENGE_AD - ITAB-MENGE.
            ENDIF.
          WHEN '601'.
            IF INT_DATA-SHKZG = 'H'.
              INT_DATA-MENGE_S = INT_DATA-MENGE_S + ITAB-MENGE.
            ENDIF.
          WHEN  '641' .
            IF INT_DATA-SHKZG = 'H'.
              IF ITAB-LGORT = 0.
                INT_DATA-MENGE_TO = INT_DATA-MENGE_TO + ITAB-MENGE.
              ENDIF.
            ENDIF.
          WHEN  '454' OR '102'.
            IF INT_DATA-SHKZG = 'H'.
              IF ITAB-XAUTO = 'X'.
                INT_DATA-MENGE_CR = INT_DATA-MENGE_CR - ITAB-MENGE.
              ENDIF.
            ENDIF.
          WHEN '551' OR '309'.
            IF INT_DATA-SHKZG = 'H'.
              INT_DATA-MENGE_AD = INT_DATA-MENGE_AD + ITAB-MENGE.
            ENDIF.
    ENDCASE.
    PERFORM BALANCE.
    COLLECT INT_DATA.
        CLEAR: INT_DATA,XBLNR, FLAG, OSTOCK.
    IF INT_DATA-SHKZG = 'S'.
          MENGE_RE = INT_DATA-MENGE_R + INT_DATA-MENGE_RT + INT_DATA-MENGE_CL
          + INT_DATA-MENGE_AD.
        ENDIF.
        IF INT_DATA-SHKZG = 'H'.
          MENGE_IS =  INT_DATA-MENGE_S + INT_DATA-MENGE_TO +
                        INT_DATA-MENGE_CR + INT_DATA-MENGE_AD.
        ENDIF.
      ENDLOOP.
      SORT INT_DATA BY XBLNR BUDAT WERKS MATNR.
    LOOP AT INT_DATA.
    AT NEW MATNR.
         FLAG = 1.
          IT_HEADER-MATNR = INT_DATA-MATNR.
          SELECT SINGLE MAKTX FROM MAKT INTO IT_HEADER-MAKTX WHERE
          MATNR = IT_HEADER-MATNR and spras = 'E'.
          APPEND IT_HEADER.
          CLEAR IT_HEADER.
      endat.
    ENDLOOP.
    LOOP AT INT_DATA.
       READ TABLE INT_DATA2 WITH KEY MATNR = INT_DATA-MATNR
                                     WERKS = INT_DATA-WERKS.
       SELECT SINGLE * FROM MAKT WHERE MATNR = INT_DATA-MATNR.
       INT_DATA-MAKTX = MAKT-MAKTX.
       MODIFY INT_DATA.
       CLEAR: INT_DATA, INT_DATA2.
    ENDLOOP.
      LOOP AT INT_DATA WHERE  MENGE_O = 0 AND MENGE_RT = 0 AND
                            MENGE_CL = 0 AND MENGE_AD = 0 AND
                            MENGE_S = 0 AND MENGE_TO = 0 AND
                            MENGE_CR = 0 AND MENGE_R = 0 AND MENGE_BAL = 0.
        DELETE IT_HEADER WHERE MATNR = INT_DATA-MATNR.
      ENDLOOP.
      DELETE INT_DATA WHERE MENGE_O = 0 AND MENGE_RT = 0 AND
                            MENGE_CL = 0 AND MENGE_AD = 0 AND
                            MENGE_S = 0 AND MENGE_TO = 0 AND
                            MENGE_CR = 0 AND MENGE_R = 0 AND MENGE_BAL = 0.
    PERFORM WRITE_REPORT.
    INT_DATA-MENGE_O = OSTOCK.
    PERFORM GET_OPENING_STOCK.
    FORMAT COLOR 4 INTENSIFIED OFF.
           WRITE:/1 SY-VLINE,
                 106 'Opening Balance' CENTERED,
                 130 SY-VLINE,
                 156 SY-VLINE.
    WRITE: 130(8) OSTOCK.
    WRITE:/1(156) SY-ULINE.
    FORMAT RESET.
    LOOP AT INT_DATA.
    FORMAT COLOR 2 INTENSIFIED OFF.
    WRITE:/1 SY-VLINE,
                 2 INT_DATA-XBLNR,
                 14 SY-VLINE,
                 15 INT_DATA-BUDAT,
                 27 SY-VLINE,
                 28 INT_DATA-BWART,
                 40 SY-VLINE,
                 43(9) INT_DATA-MENGE_R,
                 51 SY-VLINE,
                 52(9) INT_DATA-MENGE_RT,
                 65 SY-VLINE,
                 66(9) INT_DATA-MENGE_CL,
                 82 SY-VLINE,
                 83(7) INT_DATA-MENGE_AD,
                 89 SY-VLINE,
                 90(9) INT_DATA-MENGE_S,
                 97 SY-VLINE,
                 98(9) INT_DATA-MENGE_TO,
                 106 SY-VLINE,
                 107(9) INT_DATA-MENGE_CR,
                 120 SY-VLINE,
                 121(9) INT_DATA-MENGE_AD,
                 130 SY-VLINE,
                 131(9) INT_DATA-MENGE_BAL,
                 144 SY-VLINE,
                 145 INT_DATA-MBLNR,
                 156 SY-VLINE.
    FORMAT RESET.
    ENDLOOP.
    WRITE:/1(156) SY-ULINE.
    ENDFORM.
    FORM WRITE_REPORT.
      SORT IT_HEADER BY MATNR.
      LOOP AT IT_HEADER.
        SKIP .
        AT NEW MATNR.
         WRITE:/1(60) SY-ULINE.
         READ TABLE IT_HEADER INDEX SY-TABIX.
          WRITE:/1 SY-VLINE,
             2 'Material  :'(006),14(7) IT_HEADER-MATNR NO-GAP,'-',
                   IT_HEADER-MAKTX,
                     60 SY-VLINE.
          WRITE:/1(60) SY-ULINE.
          SKIP.
          SET LEFT SCROLL-BOUNDARY COLUMN 50.
          WRITE:/1(156) SY-ULINE.
           FORMAT COLOR 1 INTENSIFIED OFF.
           WRITE:/1 SY-VLINE,
                    2 'Doc. No' CENTERED,
                   14 SY-VLINE,
                   15(14) 'Doc.Date' CENTERED,
                   27 SY-VLINE,
                  28(10) 'MVT' CENTERED,
                   40 SY-VLINE,
                 41(57) 'Receipts' CENTERED,
                 89 SY-VLINE, 90(47) 'Issues' CENTERED,130 SY-VLINE,131(12) 'Balance' CENTERED,144 SY-VLINE,
                 145 'MAT.DOC NO' CENTERED,156 SY-VLINE,
                /41 SY-VLINE,1 SY-VLINE,14 SY-VLINE,27 SY-VLINE,40 SY-VLINE,89 SY-VLINE,130 SY-VLINE,144 SY-VLINE,156 SY-VLINE,
                 40 SY-ULINE,
                 /40 SY-VLINE,
                 43 'STO-In' CENTERED , 51 SY-VLINE,
                 52 'Sales Returns' CENTERED , 65 SY-VLINE,
                 66 'Canc of Invoice' CENTERED, 82 SY-VLINE,
                 83 'Adj' CENTERED, 89 SY-VLINE,
                 90 'Sales' CENTERED, 97 SY-VLINE,
                 98 'STO-Out' CENTERED, 106 SY-VLINE,
                 107 'Canc of Sales' CENTERED, 120 SY-VLINE,
                 121 'Adj' CENTERED, 130 SY-VLINE,144 SY-VLINE,156 SY-VLINE,
                 1 SY-VLINE,14 SY-VLINE,27 SY-VLINE,40 SY-VLINE.
    WRITE:/1(156) SY-ULINE.
    *LOOP AT INT_DATA.
    *PERFORM GET_OPENING_STOCK.
    *APPEND INT_DATA.
    *ENDLOOP.
    FORMAT RESET.
        ENDAT.
      ENDLOOP.
    ENDFORM.
    *&      Form  BALANCE
          text
    -->  p1        text
    <--  p2        text
    FORM BALANCE.
      IF INT_DATA-SHKZG = 'S'.
        MENGE_RE = INT_DATA-MENGE_O + INT_DATA-MENGE.
        INT_DATA-MENGE_BAL = MENGE_RE.
        INT_DATA-MENGE_RE = INT_DATA-MENGE.
      ELSEIF INT_DATA-SHKZG = 'H'.
        MENGE_RE =  MENGE_RE - INT_DATA-MENGE.
        INT_DATA-MENGE_BAL = MENGE_RE.
        INT_DATA-MENGE_IS = INT_DATA-MENGE.
      ENDIF.
    ENDFORM.                    " BALANCE
    FORM HEADER_WRITE.
    SKIP.
      WRITE: /1(156) SY-ULINE.
      WRITE: /1 SY-VLINE,
              2(144) 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
                  INTENSIFIED CENTERED," INVERSE ON
              156 SY-VLINE.
      WRITE: /1(156) SY-ULINE.
      WRITE: /1 SY-VLINE,
              2(156) 'STOCK LEDGER' INTENSIFIED CENTERED,
               "INVERSE ON,
              156 SY-VLINE.
      WRITE: /1(156) SY-ULINE.
    SELECT SINGLE * FROM T001W WHERE
                      WERKS IN WERKS.
    IF WERKS-HIGH EQ SPACE.
        CONCATENATE 'Plant :  ' WERKS-LOW INTO TXT.
      ELSE.
        CONCATENATE 'FROM PLANT : ' WERKS-LOW 'TO PLANT : ' WERKS-HIGH INTO TXT SEPARATED  BY SPACE.
      ENDIF.
    WRITE:/ 'Plant :', WERKS-LOW,SPACE ,'-', T001W-NAME1,
    82 'As Of Date :', 95 sy-datum.
    IF NOT S_DATE IS INITIAL.
        WRITE: / 'From:'(004), S_DATE-LOW, SPACE, 'To:'(006), S_DATE-HIGH,82 'PAGE No:', 91 SY-PAGNO..
      ENDIF.
    *IF FLAG5 = 'E'.
       PERFORM WRITE_REPORT.
    *ENDIF.
    FORMAT RESET.
    endform.
    *&      Form  GET_OPENING_STOCK
          text
    FORM GET_OPENING_STOCK.
      SELECT SUM( MZUBB ) SUM( MAGBB )  INTO (V_STOCK, V_STOCK1)
                    FROM S031 WHERE MATNR = ITAB-MATNR AND
                                    WERKS = ITAB-WERKS AND
                                    SPMON LT V_MONTH1 AND LGORT = ITAB-LGORT.
      OSTOCK = V_STOCK1 - V_STOCK.
      IF OSTOCK < 0.
        OSTOCK = OSTOCK * -1.
      ENDIF.
    ENDFORM.                               " GET_OPENING_STOCK
    Thanks & Regards,
    Sreedhar.

    Hi,
    Check if the data is there in the data target on which your report is based.
    Check to see if this data is available for reporting.
    Check to see if you have auth to view this data.
    Check if there are any filters or restrictions in the query that would prevent the data from being displayed.
    Check the data through LISTCUBE transaction.
    Hope this helps...

  • Not linked tot he Event

    Hi friends,
    I am facing a problem in triggering the event.
    My problem is " When a form is created in the EP and when the SUBMIT button is clicked i am calling a RFC in which i am using the function module "SWE_EVENT_CREATE" where the exporting parameter are the business object 'YBUS1065' objectkey 'EMPPERNR' and the event 'POSITION CHANGED'.
    Using this RFC call only my event is going to get triggered. I have done my worflow setting in "SWE2" and i execute the workflow but i cant see the even log in my "SWEL".
    When i diagonis the workflow in "SWUD" it says that "NOT LINKED TO THE EVENT".
    i dont know where i made the error. Please helpout it is very urgent issue.
    regrds
    Balaji

    hi Gareth,
    i send you the code what i written in the RFC, and give me some suggestions.
    MY CODE
    FUNCTION Z_WF_TRIGGER_SEVERANCE1.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(EMPPERNR) TYPE  RP50G-PERNR
    TABLES ZSEVERANCE.
    TYPES: BEGIN OF ITSEVERANCE,
            MANDT TYPE MANDT,
            EMPPERNR TYPE PERSNO,
            MESP TYPE ZNUMC,
            MEBC TYPE ZNUMC,
            OUTPLALEVEL TYPE ZNUMC,
            CSD TYPE ZCSD,
            COMMENTS TYPE ZCOMM,
            END OF ITSEVERANCE.
    *DATA: SEVERANCE TYPE STANDARD TABLE OF ZSEVERANCE  WITH HEADER LINE.
    DATA : event type SWEDUMEVID-EVTID.
    *DATA: EMPPERNR TYPE  SWEINSTCOU-OBJKEY.
    *SEVERANCE-MANDT = SY-MANDT.
    *SEVERANCE-EMPPERNR = EMPPERNR.
    *SEVERANCE-MESP = MESP.
    *SEVERANCE-MEBC = MEBC.
    *SEVERANCE-OUTPLALEVEL = OUTPLALEVEL.
    *SEVERANCE-CSD = CSD.
    *SEVERANCE-INITIATOR = SY-UNAME.
    *SEVERANCE-COMMENTS = COMMENTS.
    *APPEND SEVERANCE.
    *MODIFY ZSEVERANCE FROM SEVERANCE.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          OBJTYPE                       = 'BUS1065'
          OBJKEY                        =  'EMPPERNR'
          EVENT                         = 'POSITIONCHANGED'
       CREATOR                       = ' '
       TAKE_WORKITEM_REQUESTER       = ' '
       START_WITH_DELAY              = ' '
       START_RECFB_SYNCHRON          = ' '
       NO_COMMIT_FOR_QUEUE           = ' '
       DEBUG_FLAG                    = ' '
       NO_LOGGING                    = ' '
       IDENT                         =
    IMPORTING
       EVENT_ID                       =
    TABLES
       EVENT_CONTAINER               =
    EXCEPTIONS
       OBJTYPE_NOT_FOUND             = 1
       OTHERS                        = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    commit work.
    Regards
    Balaji

  • Return, Back Links on Dashboard while drilldown??

    Hi Experts,
    On a dashboard if we drilldown then it goes to drilldown report and a Return - Back links are present for two drill downs. How can I add Modify, Print, Download links to this list and how can I disable or enable these links completely i.e. even Return, Back links must not be shown while we drill down. [http://www.imageping.com/show.php/59962_return.jpg.html]
    Thanks in advance,
    -N-

    Hi -N-,
    I recommend you add some Javascript to the bottom of your dashboard that searches for and removes the "Return" and "Back" elements. The others can be handled via the "Show Report Links" option in the dashboard setup. But the "Return" and "Back" are automatically added on drill down and there is no out fof the box way to remove them.
    To get you started, here is a piece of JS that removes <HR> tags from Guided Nav. Link objects. You'll need to modify it to search for <a> tag objects in the page and remove only the "Return" and "Back" objects.
    <script type="text/javascript">
    var aElm=document.getElementsByTagName('hr');
    for (var i =0; i <aElm.length;i++){
    aElm\[i\].parentNode.removeChild(aElm\[i\]);
    } // end for
    </script>
    Good luck!
    -Joe

  • Where is the return items link?

    So I accidentally bought this instead of mountain lion, (Which I need, I can only install mountain lion on my blank mac) and I was wondering how I return it? Can you even return things given to you over the internet? I don't see why not, I haven't even touched it.
    Apparently there is a return items link on the order viewing page, but it's not there.... I really don't want to spend another $21 :/

    You can try this link.
    https://getsupport.apple.com/Issues.action

  • Tutor: Adding a Prior Activity that does not link to a document

    When the docs are published, the Prior Activities come across as broken links if a document filename is not included in the formatting.
    Is there a way around this so that if someone clicks on a prior activity which is not linked to a document, it doesn't do anything - rather than appearing as a broken link?
    Thank you.

    Can you provide the exact text that you are putting under the Prior Activity heading?
    Kind regards,
    Emily

  • How to find documents which are not linked to a project?

    Hi all,
    i'm just looking for a variant to search for documents which are not linked to a project within ta SOLAR_EVAL.
    I need a way to report how much documents are not linked to a project; just stored in KW.
    Can anyone give a hint?
    Thanks a lot!
    Jan

    Hi Jan,
    This report SOLMAN_UNUSED_DOCUMENTS will help you identify the documents which are not linked to the project.
    (OR) Use Tcode: SI80 to find any document in SAP Solution Manager KW.
    Regards,
    Sanjai

  • HELP WITH APPLE ID!! LOST PREVIOUS ACCOUNT TO NEW ONE, AND CANNOT UPDATE APPS!! WAS ALSO CHARGED £2 TO VERIFY CARD!! iPOD TOUCH NOT LINKED TO NEW ACCOUNT

    I started my first Apple ID a few years back, at which point Google hadn't changed their email addresses from '@googlemail.com' to 'gmail.com'. So when this option became available, I decided to change my email to '[email protected]', instead of the older and more tedious to write '@googlemail.com'. There were no problems, everything worked as expected.
    I've recently changed my password everywhere, and one of the places was my Apple ID. I was taken to the site: "https://appleid.apple.com" where I found the 'Manage my account' link. I successfully changed my password.
    The 'Apple ID and Primary Email Address' caught my eye. It had always frustrated me that my Apple ID was the "old" email address from Google... and previous attempts to change this proved unsuccessful. It always stated that the (newer) '[email protected]' was already in use, which I put down to it being the same Google account. But this time it seemed to work. I received an email saying "Welcome to the iTunes Store", and since then I've had non-stop problems.
    At first I though that the only problem was going to be that I couldn't download/update apps on my iPod touch, or download anything on the iPod's 'iTunes' store. I've managed to link my new account with the iPod so that I can download new apps on it, but every time I go to update an app, it automatically assumes that the Apple ID is my old account: '[email protected]'. I thought that this would be fine, just a minor inconvenience, that I could go to my computer, update the apps there, then sync the iPod and everything would be dandy.
    I looked around and found myself at the IFORGOT site of Apple's. I've tried having an email sent to the 'older' Apple ID '[email protected]', but no email has come through, and I also tried the other option of answering security questions... the first thing it asks is your date of birth, and as far as I know, I only have one of those. However, it told me my DOB was incorrect. My old account no longer seems to exist!!
    I tried updating the apps on my computer for the first time today, went to the 'Apps' tab on the left of iTunes and clicked the link saying '131 Updates Available'. This took me to the iTunes store as always, but when it had finished loading, it read: "No updates are currently available. To check for updates for another Apple ID, sign in with that Apple ID."
    Because all of the apps I downloaded were on my old Apple account, none of them exist as far as my new account is concerned. My old account no longer exists, so I have no option to sign in to that and update them. My collection of apps is far too large for me to even consider just downloading them all again! As well as apps not existing, my iPod touch is not linked to my new Account. I understand I could restore my it so that it would then be linked to it, but actually, I don't want to have to arrange the homescreen again, and re-connect to all the WiFi connections I've already made. Those are all saved in the backup that is updated when it is synchronised.
    Someone please help!! I don't know what to do, and I don't know how to get hold of Apple!!
    Thanks for reading.

    That is way too much to read.
    Why did you start a new account?
    You apps and other purchases will always be tied to the accoutn from which they were purchased.  You will have to update them using the user id and password on the accoutn from which they were purchased.
    The charge was very likley a authorization hold and will be removed.
    iTunes Store & Mac App Store: About credit-card authorization holds
    You can click "Support " at the top of this page, hen click the link under "Contact Us' if you need to contact itunes support.

  • ICal events disappeared (not linked to MobileMe or iCloud)

    Hello,
    I run iCal 4.0.4 with MacOSX 10.6.8.
    I recently noted that all events before 6 May 2011 have disappeared and I don't know why.
    The preferences are not set with the 'Delete events ?? days after they have passed' (the box is not ticked).
    I did a test yesterday looking if the events where disappearing but that is not the case, so this morning events after the 6 May 2011 still there.
    My iCal is not linked to ModileMe or iCloud in any way.
    Where are the events before 6 May have gone? Can I retrieve them? Would events continue to disappear?
    Any help is much appreciated.
    Thanks

    You need to ensure that each device (including the MBP) is using iCal from iCloud (NOT a local version of iCal).  Using the MBP as an example, click on the Calendars icon in the upper left corner and look for something similar to the following:
    If it does not say ICLOUD at the top, there's your problem.  Post back and we'll go from there.

  • I moved by iTunes files to an external drive because I was changing computers. I then moved the files to the new computer. My iPod is not linking with the files on the computer.  What can I do?

    I moved my iTunes files from my old computer to an external hard drive.  I then moved those files to the new computer. My computer and iPad are not linking up (recognizing each other?).  I installed the latest version of iTunes onto the new computer to see if that would help.  It did not--I got the message that an iPad can only be linked up with one computer and the new download would not work with this iPod.  So the iTunes' library and my iPod are not connecting, and I have no way of installing or removing new songs onto my iPad.  What should I do to correct this?

    Sorry, I had a typo.  The last sentence should have read "iPod" (iPad):  So the iTunes' library and my iPod are not connecting, and I have no way of installing or removing new songs onto my iPod.  What should I do to correct this?

  • After upgrading my iPhone 4S to iOS6, my Find My Friends app no longer links to my Contacts and does not show contact names. It only shows e-mail addresses and does not link up to the corresponding email address in my Contacts. How can I fix this?

    After upgrading my iPhone 4S to iOS6, my Find My Friends app no longer links to my Contacts and does not show contact names. It only shows e-mail addresses and does not link up to the corresponding email address in my Contacts. How can I fix this?

    I am also having problems with a site I am building. No matter what websafe font I use it displays as New Times Roman in FireFox. The correct fonts show in both IE9 and Chrome.
    In addition, text shifts in FireFox. I have to position other text objects farther and farther apart as I go down the page or they start to overlap. Nav buttons and other images also have to be positioned in the wrong place for them to be in the correct place when the page is opened in FireFox. FireFox should display pages correctly by default. I can't expect th average user to have to tweek his/her settings to display my site.
    I have been recommending FireFox on my website as the best browser. I might have to change that and abandon FireFox myself.

  • My hp all in one printer will not link to my new router.

    I have a hp all in one printer deskjet 3510 model and i just got a new belkin N600 router and they will not link for wireless printing. The printer just times out when I try to get them to link. I use the push button setup because thats what i have. How can i get them to link. I had no problem with my old router it was a linksys.

    Replacing your wireless router try here.
    http://www.hp.com/global/au/en/wireless/reconfiguring-system-help3.html
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Our Windows PC crashed with all our music on it.  There are copies of both purchased (thru iTunes store) and from our own CDs on another HD in a backup file.  They are not linked to a Media file.  Is there any way I can put this music on my new computer?

    Our Windows PC crashed with all our music on it.  There are copies of both purchased (thru iTunes store) and from our own CDs on an external HD in a backup file.  They are not linked to a Media file.  Is there any way I can put this music on my new computer?

    The syncing of music is one way, computer to phone. See this helpful document from a fellow user. Credit goes to the author.
    https://discussions.apple.com/docs/DOC-3141

  • How do I create text flow in Pages 5.1 if text boxes do not link?

    Hi Everyone,
    Is there any way Pages 5.1 enables text to flow between text boxes if the text boxes do not link? Thanks!

    Like I said, Peter, new to the forum. As for the app store I assumed the new version would, if anything, enhance the functionality of older versions. I obviously made the wrong assumption, both there and thinking that Apple might be paying attention to what is going on here. If I seem upset, it's because I just spent a bunch of money on a new system and am slowly discovering the many small ways in which Apple's software (and hardware) is being dumbed down. Seems like now that Jobs is gone and Apple's stock is through the roof, the cost-cutter... I mean stock-inflators are calling the shots.

Maybe you are looking for

  • Error in authentication with ldap server with certificate

    Hi, i have a problem in authentication with ldap server with certificate. here i am using java API to authenticate. Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.

  • "There was a problem installing Photoshop CC (2014)" error for a year

    I've been trying to install Photoshop for over a year (haven't really needed it yet, and now I do), and get the same error every time. It gets through about 45% of the download (always the same percentage, roughly), and then gives up and says "Instal

  • Connect Oracle through internet

    Hi, I am trying to connect my oracle database through internet. but it is saying ORA-12203: TNS:unable to connect to destination although i tested tnsping utility, it is giving OK status. and i have also tested through telnet utility with my server s

  • New update of ae doesn't work. program won't open.

    just updated now ae won't open. Error message: After Effects warning: Could not create the file '/Users______/Library/Preferences/Adobe/After Effects/13.2/dummy'. worked fine prior to updating adobe apps.

  • How do you change selected text in Pages v. 5.1?

    I write primarily in English, but I include words, phrases, and information that are sometimes written in another language. How do I select a word or block of text and change the language just for that section?