GR IR not clearing via ERS

We have a number of old inter-company documents  for the one of our plants sitting in the GR/IR that have not cleared via ERS.  Please help me in finding the reason for not getting these cleared.

Sometimes GRIR does not happen because the material documents gets updated in table ZZEKRS.
The material number apperaing in this table are not picked up while running MRER
You need to run a program to clear the entries in this table(Program:ZZ_DELETE_ZZEKRS).
This is a correction program provided by SAP as part of *SAP Note 680459
This program should be svheduled before running the MRER job,so that it clears the entries before the MRER batch job.
Arvind

Similar Messages

  • GR/IR difference visible in MB5S but not clearing via MR11

    Dear gurus,
    I am facing abnormal behaviour of the system. System is showing few POs in MB5s but not showing it in MR11 for clearing purposes. Has anyone faced the same situation ?
    Regards,
    FR

    Transaction MB5S is used to analyse the purchase order history and will list all entries where the goods receipts quantity is not equal to the invoice receipts quantity. The report looks at the purchase order
    from a logistics viewpoint.
    What MB5S does is to look in table EKBE where the PO history is
    stored.If there is any balance between the GR/IR , this is shown
    in the report. Sometimes there is confusion in the interpertation of the results of
    RM07MSAL.  The aim of this program is to show how the GR is effectively valuated
    if the existing invoices are taken into account, independently from how the GR itself was valuated (or not valuated).
    MB5S is not the appropriate functionality for analysis of the clearing account.
    Transaction MR11 will only pick up variances in quantity, not in values.
    The aim of MR11 is to clear the GR/IR account, not the quantities.
    However, an open item on the GR/IR account can only exist, if the
    quantities are different (for normal POs with valuated GR).
    MR11 posts like an debit/credit note with value 0 and the open quantity.
    This clears the GR/IR account, and the quantities are cleared as well,
    but only as a by-product of this mechanism.
    POs with non valuated GR never have open items on GR/IR account,
    because neither GR nor IR post to the GR/IR account.
    For additional information about the MR11 transaction please check
    the SAP note 10757  FAQ: MR11, clear GR/IR clearing account.

  • On an iPad with iTunes, do you know if you can edit/delete all your tunes on your device with a "clear all" button rather than having to delete a song one by one like you have to do on an iPhone if not synching via a MacBook/ PC with iTunes account?

      I'm signed up to the Cloud and itunes match - the whole game. But I cam getting annoyed with having to delete songs one by one on my iPhone once dowloaded from the cloud as I only have a 16GB phone....yes I listen to music non-stop!  So, I am thinking about getting an iPAD as I rarely use my MacBook Pro for anything other than surfing and music now...  so the question is:  "On an iPad with iTunes, do you know if you can edit/delete all your tunes on your device with a "clear all" button rather than having to delete a song one by one like you have to do on an iPhone (if not synching via a MacBook/ PC with iTunes account where I know you can clear down and refill with ease)????

    Have you tried
    Settings > General > Usage > Music > Edit > Delete

  • DW bug? Not clearing floats via overflow:hidden

    OK so I think I found a bug in Dreamweaver CS3's Design View.
    I have been using an alternative technique to clear floats using
    overflow:hidden. It's not a new technique but it is very clean. You
    can read about it here:
    http://www.quirksmode.org/css/clearing.html
    I believe the technique is valid, standards-compliant and
    rendered by all modern browsers. What happens in DW is that the
    floats are not cleared, and the containing box collapses. Here's
    some very basic code to test it:

    It's a well known flaw in CS3 and earlier Design view. It's
    fixed in CS4.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "sly one" <[email protected]> wrote in
    message
    news:g5ip1q$90r$[email protected]..
    > OK so I think I found a bug in Dreamweaver's Design
    View. I have been
    > using an
    > alternative technique to clear floats using
    overflow:hidden. It's not a
    > new
    > technique but it is very clean. You can read about it
    here:
    >
    http://www.quirksmode.org/css/clearing.html
    > I believe the technique is valid, standards-compliant
    and rendered by all
    > modern browsers. What happens in DW is that the floats
    are not cleared,
    > and the
    > containing box collapses. Here's some very basic code to
    test it:
    >
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    > <title>Clear Floats with Overflow
    Hidden</title>
    > <style type="text/css">
    > <!--
    > body{
    > font-family: Arial, Helvetica, sans-serif;
    > }
    > div.container {
    > border: 1px solid #000000;
    > overflow: hidden;
    > width: 100%;
    > }
    >
    > div.left {
    > width: 45%;
    > float: left;
    > background:#FF9900;
    > }
    >
    > div.right {
    > width: 45%;
    > float: right;
    > background:#FF9900;
    > }
    >
    > -->
    > </style></head>
    >
    > <body>
    >
    > <div class="container" style="overflow: hidden;
    width: 100%">
    > <div class="left">
    > <p>The left column.</p>
    > <p>The left column.</p>
    > <p>The left column.</p>
    >
    > <p>The left column.</p>
    > </div>
    > <div class="right">
    > <p>The right column.</p>
    > <p>The right column.</p>
    > <p>The right column.</p>
    > </div>
    >
    > </div>
    >
    > </body>
    > </html>
    >

  • APP Open Item Not cleared

    Hi All,
    I have strange issue. automatic payment run is executed and after that i have messgae
    Posting orders: 23 generated, 22 completed
    i have 23 clearing document but one document which is generated its not cleared the open item and even am not finding that
    document no in FB03 t code.
    can you give give me your overview on this issue
    "Posting orders: 23 generated, 22 completed" : Why this type of messgage genarated and what will be the reason
    Thank you

    With reference to the issue reported, as you have noticed the number of generated documents and the number of completed documents are different
    ->  "Posting orders: 23 generated, 22 completed". This is a clear indicator that there was something wrong with the update process and the payment document did not get posted. The reason why you have more documents generated than completed maybe due to update terminations on the executing the payment run. It means one of document was not posted
    in the database. You could find the terminated update using SM13. Here you can find an update termination found via sm13 when user processed the payment.
    Also please review the attached note 86578, especially the third recommendation and payment run processing option number 1. Comparison of 'Completed' orders to 'Generated' orders as stated will result in
    identification of incomplete posting problems. Also check this note 70085 which has very good information:
    If you have such terminations in future and documents were not posted, then please try the following
       F110 menupath: Edit   > Payments   > After termination   >
                      Draw up again.
    Else the correction to be taken is to recreate manually the missing document and update the relevant cleared line items with the
    payment document as the clearing document:
    1.Use report RFVBER00 to find document gaps:
    2.Pay the invoices manually.
    You should be able to avoid double payment by using the below option in the print program i.e.
    You should always select the flag "Payment doc.validation" on running your RFFO* report.
    It gives an option to check if the payment documents are already in the system or not, and if it's not the print program excludes this data for payment.
    Hope this information helps.
    Best Regards
    Soumya

  • Accounting document not cleared when billing document is cancelled.

    Hi,
    In ECC 6.0 when we cancel a billing document through vf11 in vfo3 we find the status as accounting document not cleared.
    The general process is manually going to f-23 and clear customer line items of that invoice. After doing this the status become accounting documet is cleared.
    My requirement is how to cancel the billing document without getting this message (accounting document not cleared) and not clearing the customer line items manually.
    Can it be done through user exit/enhancement or by copying requirement vofm.
    Please suggest.
    Thanks
    Edited by: sumesh on Jul 29, 2009 6:33 PM

    They directly want the accounting document to
       be cleared when billing document is cancelled.
    Though you can achieve this with the help of ABAPer, why dont you consider having a Posting block for your billing type so that as and when the billing documents are generated, you can release it via VFX3 in bulk or VF02 for individual billing document release to FI.
    In order to achieve this, go to VOFA, select your billing type and execute.  There you can see a field "Posting block" where maintain a tick there and save.  With this control, first of all, you can ensure that before releasing F2 billing documents to FI, it is not cancelled.
    thanks
    G. Lakshmipathi

  • Electronic Bank Statement - automatic clearing via Assignment number

    Dear all,
    when posting our outgoing cheques, the cheque number is copied to the assignment field (via an automatic job). Our cheque numbers have 6 digits.
    When we are getting in the bank statement file  the cheque number is populated in the 'Note to payee' (same number in "Reference" field), but instead of 6 digits, the bank adds additional 6 digits / zeros infront of the cheque number. Meaning that instead of 005217 we get 000000005217.
    We want to use the automatic clearing with the link between 'Note to payee' and 'Assignment field'.
    The following settings were done in the system:
    1. Posting rules: "4 Clear debit G/L acct"
    2. Search string definition:
    1. 0 > ' ', 2. 0 > ' ', 3. 0 > ' ', 4. 0 > ' ', 5. 0 > ' ', 6. 0 > ' ', 7. # > #, 8. # > #, 9. # > #, 10. # > #, 11. # > #, 12. # > #
    3. Search string use:
    - Algorithm 015: Clearing Transaction: Selection Using Assignment
    - Target field: Payment Notes
    With those settings the system does not find the items to clear.
    Does anybody know what is missing?
    Thanks!
    R, Katharina

    We have uploaded MT940 file through /nff.5 .
    The posting which has happened after MT940 was uploaded is
    Dr  Main bank account ( 190220)  500 INR
    Cr. Bank Sub Control Account (190228)  500 INR
    The entry which is their is sub control bank account posted on
    Dr. Bank Sub control Account (190228)      500 INR
    Cr. Customer Account                               500 INR
    Their is no other posting also with 500 in sub control account
    But these are not cleared automatically & reflecting in FEBA as to be posted.
    Now out 100 trnsaction the success rate of automatic clearing is 30%.
    What could be the reason?  Is it to do with date etc.
    I undertand that clearing against ( two document ) is against some criteria.
    then what those criteria are.

  • F-28 customer invoices were not cleared

    Hello ,
    i would need to find out what could happened when i was clearing the customer invoices in transaction F-28.
    The entered invoices were not cleared after i pressed the "post".They appeared as open item on customer account so we had to clear them manually in transaction F-32.
    It makes no sense... Can someone pls explain what happened?
    Many thanks
    Erika

    No, it is possible,if when you reverse the cleared document via FBRA, there are two ways to do that so, one way is to reset only, another way is to reverse and reset, once you select latter way, then another reversed document will be generated to offset the existing one, then you will be able to use fb03 to show that new generated finance document, then click header icon, then you will know who did it, hope it helps.

  • VF02- Billing doc not cleared

    Hi Gurus,
    I have raised a sales order and got the following document flow:
    - Sales order - Completed
    - Delivery + PGI - Completed
    - Billing - Invoicing done + FI Document has been created
    But I have the following message in Billing: Accounting document  not cleared
    What does that mean?
    What do I need to do to clear the document?
    Regards
    Chris

    Accounting document not cleared
    In standard, once you save a billing document, system will never pop up the above error message.  In few cases, system will pop up "Accounting document not generated".
    The moment you save a billing document in SD, immediately an accounting document will also be created in the background and both the status would be "Not cleared" in the initial stage.  Once the customer effected payment, FI people will update the incoming payment via F-28.  Once they complete this updation, in the document flow, system will show "Cleared".
    thanks
    G. Lakshmipathi

  • Accounting Document not cleared while billing

    Hi Experts,
    I am not an abaper!
    I tried creating a sales order (sold to party is taiwan)  Had a credit hold , Released it , created delivery ,
    Performed PGI, and finally i try to do the billing via VF01.
    When i do the billing account docment got generated but says not cleared.....
    I find these entries exactly.
    cocd   itm       pk       account          amount        profit center     partnerpc         trprt             plant.
    131     2        50       501210          1,000.00-      24002     24002          121             2075
    131     1         01       12100099          1,000.00                                          121     
    I am tryin to understand what went wrong?
    Is there some information available from this to find a fix?
    regards,
    Shawn.

    Hi,
    The accounting document is not cleared because you hav not received the payment from cutomer.
    1)Go to T.code F-32 give the customer number in the account field, Company code & Currency.Then click on on process item.
    2)Then search for your accounting document, then click on select all icon the line items it will be highlighted.
    3) After that click on deactivate items, all the highlighted items will now be deactiveted.After that double click only on your accounting document, then click on document overview button.
    4)After clicking on the document overview button you will taken to another screen, there you give the "PstKy" & "Account".After doing that click on process open items.
    5)There you will give the amount you have in billing document or accounting document.
    6) Then go to Menu bar click on  Document--> Simulate
    7)After that save the document .
    Then go to VF03 & click on the document flow you will find the accounting document is cleared.
    Regds......
    Sumit

  • N9 not detected via USB connection

    Since last few months I have observed that my Nokia N9 is not detected via any PC if connected via USB cable. The USB cable is OK because my other devices are easily detected through same cable. Can anyone suggest solution. I have already try to "Clear device" under settings->Reset.
    Please help.

    @girishpadia
    Presumably your N9 still charges when connected to PC USB?
    Does this apply to both Nokia Suite and Mass Storage mode presupposing that Nokia Suite is installed upon PC?
    Happy to have helped forum with a Support Ratio = 42.5

  • Billing doc not cleared

    I have posted one billing document, but document flows says account not cleared, I don't have F110, my objective is to clear the billing account document automatically, without manual clear it, how to achieve, thanks

    Ideally the scenario what you had indicated is similar to advance payment process.
    In normal circumstances, once a billing document is generated, it should get debited to customer account and only when the payment is realized, via F-28 once the updation is done, the status of that billing document will be changed to Cleared.
    If the requirement is to automate as and when the billing document is generated, then as I said above, down payment process is the right approach.  However, still if you go for this, you can try with BADI FAGL_PERIOD_CHECK (Method PERIOD_CHECK)
    thanks
    G. Lakshmipathi

  • Diff... between  ALE, IDOC, RFC, BAPI, BADI --- Not clear and clarify

    Hi All
        I am learning XI and the difference between " ALE, IDOC, RFC, BAPI, BADI "
        Not clear and when to use what and how in point of XI ?
       Pl..clarify me
    Adv..thanks and points
    --- Rakesh Behera

    Hi
    This will expalin you every thing ...pl..go through
    The interface concept of the classic R/3 is based on two different strategies: Remote Function Calls (RFC) and data exchange through IDoc message documents. RFC makes direct and synchronous calls of a program in the remote system. If the caller is an external program it will call an RFC-enabled function in R/3 and if the calling program is the R/3 system it will call an RFC-function in another R/3-system or it will call a non-R/3 program through a gateway-proxy (usually rfcexec.exe). BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.
    IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
    While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
    The philosophical difference between EDI and ALE can be pinned as follows: If we send data to an external partner, we generally speak of EDI, while ALE is a mechanism to reliable replicate data between trusting systems to store a redundant copy of the IDoc data. The difference is made clear, when we think of a purchase order that is sent as an IDoc. If we send the purchase order to a supplier then the supplier will store the purchase order as a sales order. However, if we send the purchase order via ALE to another R/3 system, then the receiving system will store the purchase order also as a purchase order.
    I hope this will help you to understand the difference bet..those
    regards
    --- prasad

  • Portal logoff not clearing business objects SSO connection

    Is there a way to clear the saved SSO information from the business objects session in the background?
    The scenerio;
    On a computer shared by multiple users
    UserA Logs on to the SAP Enterprise portal, navigates to an iview that uses OpenDocument to run an xcelsius dashboard.  Single signon works great and dashboard is displayed.  This dashboard resfreshes on open and data retrieved is correct based on this users autorizations in BW.  The user Clicks the logoff link in the masthead of the Enterprise portal, the portal session and its SAP logon ticket are closed and the Portal logon page is redisplayed.
    UserB logs on the the SAP Enterprise portal, navigates to the same iview, the dashboard runs and retireves the data, but the data displayed is based on the BW autorizations for UserA.
    I verified that the SSO connection that userB is using to retrieve data is left over from UserA.  (I did this by simply opening an InfoView window and it shows the userid of UserA in the Welcome message.
    Closing the Browser window between each user login takes care of the problem, but is not really something we can count on our users doing.

    Hi Gail,
    We are also facing same issue as you had, Integrated BI launchpad with Portal and SSO is working fine via portal. But issue is already opened reports or Business objects will not clearing as you had after log off and lo-gin back.
    Can i setup any property to clear the BOBJ cookies or Can i create sap note for logoff option button on BOBJ via portal.
    Can you please suggest me to resolve this issue.
    Thanks,
    Naveen

  • QM Block not triggered  via EDI orders

    Hello All,
    Please help me with this problem "QM block not triggered via EDI Orders".
    Sales Orders will be created using IDOC. When the sales orders was displayed using VA02, goto >> items >> schedule lines, there's no QM status violated being displayed in the delivery block column.
    Kindly help me what logic will I applied regarding this matter.
    FM used was IDOC_INPUT_ORDERS.
    I need your comments/suggestions ASAP.
    Thanks in advance.
    Carina

    hai,
    Just check this it may help tou.
    Program Name : YX30_UPLOAD_QUALITY_INFO
    Quality Info Record for I30 System *
    Original Transport Number : I30K903055 *
    SYS id: SYS_30_1502_03_41_Upload Quality Info Records *
    TDS id: TD_30_1502_03_41_Upload Quality Info Records *
    UT ID: UT_30_1502_03_41_Upload Quality Info Records *
    ======================================================================
    Change History *
    Date | Change No | Name | Description *
    yyyy/mm/dd | AAAYYYYMMDD | xxxxxxxxxxxx | *
    REPORT YX30_UPLOAD_QUALITY_INFO MESSAGE-ID yx30_conversions
    no standard page heading line-size 255.
    include yx30_upload_quality_info_top. "Include for Variable Declaration & Selection Screen
    include yx30_upload_quality_info_data. "Include for File read & Authority Check
    *& At Selection Screen Output *
    AT SELECTION-SCREEN OUTPUT. "PBO
    PERFORM fill_parameters.
    *& Start Of Selection Event *
    start-of-selection.
    Perform Authority_check. "Subroutine for authority check
    Perform prepare_file. "Subroutine for preparing file
    perform file_read. "Subroutine for File read
    perform update_qi01. "Subroutine for Uploading data
    perform write_error_log1. "Subroutine for writing error log
    *& Form write_error_log
    text
    --> p1 text
    <-- p2 text
    *& Include YX30_UPLOAD_QUALITY_INFO_TOP
    Type Declaration
    Types: Begin of type_qtyinf,
    matnr type matnr, "Material No
    lieferant type char10, "Vendor
    werk type werks_d, "Plant
    frei_dat type char10, "Frei_Dat
    stsma type char8, "Stsma
    anwso_01 type char1, "ANWSO(01)
    anwso_02 type char1, "ANWSO(02)
    anwso_03 type char1, "ANWSO(03)
    end of type_qtyinf.
    Internal Table Declaration
    Data: itab_qtyinf type standard table of type_qtyinf. "Internal table for QTYINF.
    Work Area Declaration
    Data: wa_qtyinf type type_qtyinf. "Work Area for QTYINF.
    Variable Declaration
    Data: v_file_qtyinf type string, "Source File Name
    v1 type string,
    v2 type string,
    v3 type string,
    v_file_return type string,
    v_lin TYPE n.
    *Selection Screen Declaration
    selection-screen *
    SELECTION-SCREEN BEGIN OF BLOCK blk1
    WITH FRAME TITLE text-s01.
    PARAMETER:
    p_sysid(3) TYPE c OBLIGATORY , "Source System
    p_bukrs(4) TYPE c OBLIGATORY , "Source CompCode
    p_samshr type char30 lower case obligatory default '/sap_upload/' , "Samba Share Drive
    p_object TYPE CHAR10 OBLIGATORY default 'MAT' . "Migration Data Object
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN SKIP 3.
    PARAMETER:
    cb_pfill TYPE c AS CHECKBOX DEFAULT 'X' . "Prefill values?
    SELECTION-SCREEN COMMENT /1(79) text-s1a.
    SELECTION-SCREEN BEGIN OF BLOCK blk3
    WITH FRAME TITLE text-s03.
    PARAMETER:
    pa_filn1(500) TYPE c LOWER CASE
    VISIBLE LENGTH 50 , "Filename AppServer
    pa_dlimt TYPE c DEFAULT ';' . "Field Delimter
    SELECTION-SCREEN END OF BLOCK blk3.
    include bdcrecx1. "Include for the subroutine
    *& Include YX30_UPLOAD_QUALITY_INFO_DATA
    *& Form file_read
    Subroutine for reading the source file into internal table
    --> p1 text
    <-- p2 text
    FORM file_read .
    DATA:
    single_line TYPE string .
    *-- read file, split lines into fields and put data into table
    OPEN DATASET v_file_qtyinf FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
    IF sy-subrc EQ 0.
    DO.
    READ DATASET v_file_qtyinf INTO single_line. "Reading the content of file into line
    IF sy-subrc = 0.
    IF sy-index > 1. "skip header-line
    SPLIT "Split the content of line into work area
    single_line
    AT ';'
    INTO
    wa_qtyinf-matnr "Material No
    wa_qtyinf-lieferant "Vendor
    wa_qtyinf-werk "Plant
    wa_qtyinf-frei_dat "Frei Date
    wa_qtyinf-stsma "STSMA
    wa_qtyinf-anwso_01 "ANWSO_01
    wa_qtyinf-anwso_02 "ANWSO_02
    wa_qtyinf-anwso_03. "ANWSO_03
    APPEND wa_qtyinf TO itab_qtyinf. "Appending Work Area to internal table
    ENDIF.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CLOSE DATASET v_file_qtyinf. "Closing the files
    ELSE.
    MESSAGE e015 .
    ENDIF.
    DESCRIBE TABLE itab_qtyinf LINES v_lin.
    IF v_lin LT 0.
    MESSAGE e016 .
    ENDIF.
    ENDFORM. " file_read
    *& Form fill_parameters
    Subroutine for getting the file name
    FORM fill_parameters .
    IF cb_pfill = 'X'.
    Preparing QTYINF File
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_QTYINF_' p_bukrs '.CSV' INTO v2.
    CONCATENATE p_samshr v3 '/' p_object '/' v2 INTO pa_filn1.
    ENDIF.
    ENDFORM. " fill_parameters
    *& Form Authority_check
    Authority Check
    --> p1 text
    <-- p2 text
    FORM authority_check .
    Authority Check For the Migration
    AUTHORITY-CHECK OBJECT 'YX30_MIGR'
    ID 'SYSTEM' FIELD p_sysid
    ID 'BUKRS' FIELD p_bukrs
    ID 'YX30_DMOBJ' FIELD p_object
    ID 'ACTVT' FIELD '16'.
    IF sy-subrc <> 0.
    MESSAGE e010 WITH p_sysid p_bukrs p_object.
    ENDIF.
    ENDFORM. " Authority_check
    *& Form prepare_file
    text
    --> p1 text
    <-- p2 text
    FORM prepare_file .
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_QTYINF_' p_bukrs '.CSV' INTO v2.
    CONCATENATE p_samshr v3 '/' p_object '/' v2 INTO v_file_qtyinf.
    CLEAR v3.
    CLEAR v2.
    Prepare Return File
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_RETRUN_LOG_' p_bukrs '.CSV' INTO v2.
    CONCATENATE '/sap_upload/' v3 '/' 'MAT' '/' v2 INTO v_file_return.
    ENDFORM. " prepare_file
    *& Form update_qi01
    text
    FORM update_qi01.
    PERFORM open_group. "Opening a session
    CLEAR wa_qtyinf.
    LOOP AT itab_qtyinf INTO wa_qtyinf.
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0100'. "Subroutine for mapping data
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-MATNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'QINF-MATNR'
    wa_qtyinf-matnr. "Mapping the material
    PERFORM bdc_field USING 'QINF-LIEFERANT'
    wa_qtyinf-lieferant. "Mapping the vendor
    PERFORM bdc_field USING 'QINF-WERK'
    wa_qtyinf-werk. "Mapping the plant
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0101'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=STAN'.
    PERFORM bdc_field USING 'QINF-FREI_DAT'
    wa_qtyinf-frei_dat.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-STSMA'.
    PERFORM bdc_field USING 'QINF-STSMA'
    wa_qtyinf-stsma. "Mapping the status
    PERFORM bdc_dynpro USING 'SAPLBSVA' '0201'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'J_STMAINT-ANWSO(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=OKAY'.
    IF wa_qtyinf-anwso_01 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01. "Mapping the anwso(01)
    ELSEIF wa_qtyinf-anwso_02 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02. "Mapping the anwso(02)
    ELSEIF wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03. "Mapping the anwso(03)
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_02 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ELSEIF wa_qtyinf-anwso_02 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_02 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ENDIF.
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0101'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-FREI_DAT'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=QMBU'.
    PERFORM bdc_field USING 'QINF-FREI_DAT'
    wa_qtyinf-frei_dat.
    PERFORM bdc_field USING 'QINF-STSMA'
    wa_qtyinf-stsma.
    PERFORM bdc_transaction USING 'QI01'.
    ENDLOOP.
    PERFORM close_group. "Closing the session
    ENDFORM. "update_qi01
    *& Form write_error_log
    text
    --> p1 text
    <-- p2 text
    FORM write_error_log1 .
    DATA:
    single_line TYPE string,
    v_msg TYPE string,
    v_msg1 TYPE string.
    *-- read file, split lines into fields and put data into table
    OPEN DATASET v_file_return FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
    IF sy-subrc EQ 0.
    CONCATENATE text-020 v_lin INTO v_msg SEPARATED BY space.
    CONCATENATE text-021 v_lin INTO v_msg1 SEPARATED BY space.
    TRANSFER: v_msg TO v_file_return.
    TRANSFER: v_msg1 TO v_file_return.
    WRITE:/ v_msg.
    WRITE:/ v_msg1.
    ENDIF.
    ENDFORM. " write_error_log
    with regards.
    sowjanya.b.

Maybe you are looking for

  • Issue Regarding 990FXA-GD80 BIOS flash

    Hello all This is my first post, so please bear with me if i do not include everything needed. Also, this forum looks very informative and helpful from what I've seen. My gratitude extends to all that help out! I am having trouble flashing the BIOS o

  • Why is it impossible to export a file with the same fidelity as the version iMovie itself plays for me?

    My movie is a photo slideshow using Ken Burns effect throughout, using iMovie 09. It looks beautiful when I play the project directly from within iMovie, even when enlarged to fullscreen playback. Is there really no way to set the quality settings hi

  • Still!!! server side activities have been updated. restart SPD to use the updated version of activities

    server side activities updated... restart SPD to use latest activities" pretty huh? I have been working with SP13 online and a custom list which I would simply like to add a workflow too, When creating a workflow I receive this error, I have uninstal

  • Country name and region name in smartform

    hi friends 1.  In smart forms I want  to display country name and region name in template text .  can any one help me how could I write code for it and the procedure. 2.  IN scripts  komk-fwkrt = '1.00.200,32'.      but it should be displayed as 1,00

  • Backing up to Netgear NAS

    We recently set up a Netgear NAS as a backup system. It was working with Time Machine, but not working now after adding a new wireless router. Anyway, Time Machine sees the drive, but when I try to choose it, I get an error message that says: "OSStat