Problem while updating PO line item

Hi,
I am using ME_CONFIRMATION_UPDATE to update EKES table for mass PO confirmation and facing a problem . When we update it using the above FM used in our program after confirmation we are getting 2 records in transaction MD04 one for Shipping notification and other for PO item but when we confirm a PO manually
then the PO item record gets replaced with shipping notification record.
Thanks in advanced.

Hi
This is because the quantity reduced (RP) (field DABMG) in schedule line. You should update the field DABMG in EKET with quantity from your confirmation.
Regards
Dean Q.

Similar Messages

  • Problem while updating notification at ITEM level ?

    Hi...
    I am doing an LSMW to update certain notifications at item level.
    The Function module which i am using for this purpose is ..
    IQS4_MODIFY_NOTIFICATION
    While updating the first line item of notification, it is successfully updated, but while updating the second line item of the notification and further line items, error is thrown stating .....
    "Notification is locked by the user"
    I want to release this lock of notification after every change in line item. How do i do this.
    Regards.
    Edited by: Akshay Raj on Oct 16, 2008 8:32 AM
    Edited by: Akshay Raj on Oct 16, 2008 8:43 AM

    Use userexit save_document_prepare in MV45AFZZ .
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:51 PM

  • Problem while inserting extra line item in XVBAP

    Hi Experts,
    I have to add extra line item in the Sale order through user exit.
    So i added new line item in the internal table XVBAK of the subroutine USEREXIT_SAVE_DOCUMENT_PREPARE (MV45AFZZ). Its working fine with the sales order. But when I create delivery of the same new iserted line item is not going to the delivery.
    Please give me solution...
    Thanks
    Sameer

    Hi Sameer,
    i think, you have added the line in XVBAP - not in XVBAK.
    And what's about VBEP - without an entry in VBEP, there will be no delivery note. There are also several indexes for the delivery.
    I hav'n dared to put an extra Line into the oder while Save_prepare.
    Perhaps try the bapi for order changing.
    You can get the new order-number while userexit Save. Save the need of change in an extra teble and change is via bapi with a background - job.
    Hans

  • BDC recording(updating two line items in a single call)

    Hi,
    I have a problem with the transaction PK31,while recording we enterd material number,plant,supply area in the first screen,after that it display line items for that control cycle,I want to update some fields in that line items,when i updated quantity and status fields in the first line item after that i cliked the change "qty/status button" and it saves that field values and it comes out from the transaction.
    can you please suggest what is the solution for updating two line items in a single call(PK31 transaction).

    Hi,
    In one screen . Put 2 containers with different names.
    cont1,cont2
    on each of the container call grid,grid1 like below .
    1. this is for item line display
    IF g_r_grid IS INITIAL.
          CREATE  OBJECT  g_r_cont
                      EXPORTING  container_name  =  'CONT1'.
        g_r_variant  =  sy-repid.
    *--Build  field  catalog
        PERFORM build_field_catalog.
    *--Layout selection
        g_r_layo-cwidth_opt  = g_c_set.
        g_r_layo-no_rowmark  = g_c_set.
        g_r_layo-sel_mode    = space.
        CALL METHOD g_r_grid->set_table_for_first_display
          EXPORTING
            i_buffer_active = g_c_set
            is_variant      = g_r_variant
            is_layout       = g_r_layo
            i_save          = g_c_set
            i_default       = g_c_set
          CHANGING
            it_outtab       = g_t_alv
            it_fieldcatalog = g_t_fieldcat
            it_sort         = g_t_sort.
      endif
    1. this is for error data display
    IF g_r_grid1 IS INITIAL.
          CREATE  OBJECT  g_r_cont
                      EXPORTING  container_name  =  'CONT2'.
        g_r_variant  =  sy-repid.
    *--Build  field  catalog
        PERFORM build_field_catalog.
    *--Layout selection
        g_r_layo-cwidth_opt  = g_c_set.
        g_r_layo-no_rowmark  = g_c_set.
        g_r_layo-sel_mode    = space.
        CALL METHOD g_r_grid->set_table_for_first_display
          EXPORTING
            i_buffer_active = g_c_set
            is_variant      = g_r_variant
            is_layout       = g_r_layo
            i_save          = g_c_set
            i_default       = g_c_set
          CHANGING
            it_outtab       = g_t_error
            it_fieldcatalog = g_t_fieldcat
            it_sort         = g_t_sort.
      endif

  • I have a problem regarding sales order line item with confimed quanity

    Hi Experts,
    I have a problem regarding sales order line item with confimed quanity with '0'  with delivery block but confirming the sales order quantity once the order is released from credit check.
    The situation arises as per the below scenarios.
    Scenario - 1 -  When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
    Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx  and the order is set with credit check.  Once the order is relased from the credit check.  The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
    Scenario -2-  Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
    Maintain the stock for the line item 2 ( 5 Pcs).
    Once the order is released from the credit check.  Then  for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
    This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
    Can you please help me how to solve this issue.
    Looking forward for your reply.
    Thanks and Regards,

    Hi,
    I agree with your point.  In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check.  Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5,  But it should set to Zero quantity.  Quatity should not be get confirmed it should be Zero Quantity. 
    Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok.  But we dont want to remove the - Confirmation Block tick mark
    Please any one can help me if you have any solution to solve this problem.
    Thanks and Regards.

  • Problem while updating the Support Package 17 on my SAP WAS SP9

    Hi,
    I'm facing problem while updating the Support Package 17 on my SAP WAS SP9
    ERROR 2006-10-13 10:23:22
    FSL-06002  Error 2 (The system cannot find the file specified.
    ) in execution of a 'CreateProcess' function, line (284), with parameter (java.exe ...).
    Please help me in this regard.....
    Thanks in advance...
    Satya

    Hello gentlemen, I am also having problem with the following running on 64 bit Windows and SQL2005/64 bit. I am erroring in Step 8 'Updating JDBC' driver. I am attempting to update from SP9 to SP18. The WEBAS Jave installed went flawless but I seem to be stuck here. Any help is appreciated...
    ERROR 2006-11-22 10:13:57
    FSL-06002  Error 2 (The system cannot find the file specified.
    ) in execution of a 'CreateProcess' function, line (284), with parameter (java.exe ...).

  • Problem while updating Delivery date uisng BAPI_PO_CHANGE

    Hi friends,
    Iam facing a problem while updating delivery date of a purchase order using the bapi BAPI_PO_CHANGE
    After the bapi is getting triggered iam geting sy-subrc = 0
    But in the return parameters iam getting 3 error messages so iam unable to update the  delivery date..
    Error meesage which iam getting are
    a) Purchase order still contains faulty items
    b) Enter Tax Code
    c) Instance 1000001 of object type PurchaseOrder could not be changed.
    How can i correct it..
    Please find my code below
    LOOP AT it_eket INTO wa_eket.
        wa_poschedule-po_item = wa_eket-ebelp.
        wa_poschedule-sched_line = wa_eket-etenr.
        wa_poschedule-delivery_date = wa_eket-eindt.
        APPEND wa_poschedule TO poschedule.
        wa_poschedulex-po_item = wa_eket-ebelp.
        wa_poschedulex-sched_line = wa_eket-etenr.
        wa_poschedulex-po_itemX = 'X'.
        wa_poschedulex-sched_lineX = 'X'.
        wa_poschedulex-delivery_date = 'X'.
        APPEND wa_poschedulex TO poschedulex.
    READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN  = WA_EKET-EBELN
                                             EBELP = WA_EKET-EBELP.
          IF SY-SUBRC = 0.
          WA_POITEM-PO_ITEM = WA_EKPO-EBELP.
          APPEND WA_POITEM TO POITEM.
          WA_POITEMX-PO_ITEM = WA_EKPO-EBELP.
          WA_POITEMX-PO_ITEMX = 'X'.
          APPEND WA_POITEMX TO POITEMX.
         ENDIF.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder = wa_eket-ebeln
          TABLES
            return        = t_bapiret2
            POITEM        = POITEM
            POITEMX       = POITEMX
            poschedule    = poschedule
            poschedulex   = poschedulex.
        READ TABLE t_bapiret2 INTO wa_bapiret2 WITH KEY type = 'E'.
        IF sy-subrc NE 0.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =.
          IF sy-subrc = 0.
            WRITE :  'DELIVERY DATE UPDATED'.
          ENDIF.
        ENDIF.
    how can i correct it...
    Regards
    Kumar

    Hi,
    Pass the following values...
    POACCOUNT LIKE BAPIMEPOACCOUNT...
    poaccount-TAX_CODE = ? (value)....
    That should take care of the missing field.
    Regards,
    Madan..

  • Issue while clearing open line items

    Hi team,
    While clearing open line items for vendors, customers, and GL's system is posting new line items. It should post without new line items. Example
    Customer is having debit and credit line items with same amount i am going to clearing manually thru f-32 here sytem is posting new document with new line items. It should post without line items. I have selected Negetive postings permited check box in OBY6. I have not selected check box in document types. Do i need to change in document type also or i missed anything in settings pls help me to overcome this issue.
    Regards,
    Nagaraju.

    Dear:
                        The option  to create a clearing document WITH or WITHOUT line items depend on the fields of the structure KONTAB_1ST if all the fields are equal in the documents the clearing document will be generated and posted without line items
    Please check OSS note 95077. Check the settings in
    IMG >Financial Accounting (New) >General Ledger Accounting (New) >
    Business Transactions >Document Splitting >Activate Document Splitting
    Check the following link for the same
    F.13 clearing Document contains Lineitems
    Regards

  • Fbl1n txn for updating vendor line item

    hello every one iam trying to update vendor line item when a billing document get cancelled in vf11 i have tried bapi  BAPI_ACC_DOCUMENT_REV_POST .
    the requirement is whenever a billing document get cancelled the commision need to get credited again for example if vendor line item is
         St Assignment         DocumentNo Type     Doc. Date  S DD Amount in local cur. LCurr Clrng doc. Text
            COMMISSION         1700000014 CP       31.08.2011                    71.26- INR
    it need to get like this
         St Assignment         DocumentNo Type     Doc. Date  S DD Amount in local cur. LCurr Clrng doc. Text
            COMMISSION         1700000014 CP       31.08.2011                    71.26 INR
    that means the amount in local currency need to get into + one like above
    Please help ASAP & if some one give me code also that will be very helpul for me

    Hii ali this is my code & below iam showing u what wasthe data in  my return table please suggest me what to do
          DATA : P_REVERSAL     LIKE  BAPIACREV ,
                 TRAN_DOC(20)   TYPE  C         ,
                 p_busact       LIKE BAPIACHE09-BUS_ACT ,
                 p_objkey       LIKE BAPIACREV-OBJ_KEY  .
          DATA : P_RETURN  LIKE  TABLE OF  BAPIRET2  ,
                 WA_RETURN  TYPE  BAPIRET2          ,
                 WF_REMARKS  ,
                 PLANT     TYPE VBRP-WERKS         ,
                 bill_no   type vbrk-vbeln         ,
                 belnr     type BELNR_D  ,
                 AWKEY     type AWKEY    .
    data : date1 type sy-datum .
    date1 = sy-datum+0(4) .
    select single belnr AWKEY from bkpf into (belnr , AWKEY)    where blart = 'CP'     and
                                                     budat = sy-datum and
                                                     xblnr = vbrk-kidno . "bill_no .
          IF SY-SUBRC = 0 .
              CONCATENATE belnr AWKEY+10(4) date1 INTO TRAN_DOC .
            ENDIF .
      SELECT SINGLE WERKS  FROM VBRP INTO  PLANT  WHERE VBELN = vbrk-kidno .
            p_reversal-obj_type   = 'BKPFF'.
            p_reversal-obj_key    = tran_doc.
            p_reversal-obj_key_r  = tran_doc.
            p_reversal-pstng_date = sy-datum.
            p_reversal-comp_code  = tran_doc+10(4).
            p_reversal-reason_rev = '02'.
            p_reversal-ac_doc_no  = tran_doc+0(10).
            p_busact = ' '.
            CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'
            EXPORTING
              reversal = p_reversal
              bus_act  = p_busact
            IMPORTING
              obj_key  = p_objkey
            TABLES
              return   = p_return.
                  IF sy-subrc = 0.
                ---commit Work
                        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                          EXPORTING
                            wait = 'X'.
                  ELSE .
    *****Use the below statement, if the BAPI is sending back the 'RETURN' internal table.
                    READ TABLE p_return INTO WA_RETURN WITH KEY TYPE = 'F'.
                       IF SY-SUBRC EQ 0 .
                           CALL FUNCTION 'MESSAGE_TEXT_BUILD'
                          EXPORTING
                            MSGID = WA_RETURN-ID
                             MSGNR = WA_RETURN-NUMBER
                            MSGV1 = WA_RETURN-MESSAGE_V1
                             MSGV2 = WA_RETURN-MESSAGE_V2
                            MSGV3 = WA_RETURN-MESSAGE_V3
                            MSGV4 = WA_RETURN-MESSAGE_V4
                          IMPORTING
                            MESSAGE_TEXT_OUTPUT = WF_REMARKS.
                       ENDIF.
                    ENDIF.
    1     E     RW     609     Error in document: BKPFF $ DEVCLNT300          000000     BKPFF     $
    2     E     RW     632     Document BKPFF 1700000061WPL12011 DEVCLNT300 cannot be reversed          000000     BKPFF     1700000061WPL12011
    3     E     F5     814     Document type ZX not defined          000000     ZX
    4     E     F5     814     Document type ZX not defined          000000     ZX

  • Function Module to Change / Update BOM Line Items

    Hi,
    I need a Function Module to Change / Update BOM Line Items.
    Please help.
    Thanks.

    Try this FM - CSAP_MAT_BOM_MAINTAIN

  • IDOC to JDBC, problem with the multiple line items structure and mapping

    Hi,
    I have a scenario where the ORDERS data need to update the SQL table. for the idoc which consists one line item its ok but for multiple line item its just updating one line item. In the destination side we have only one table for purchase order which consists of lineitem as a field.(no different tables for Header data and Line item data)
    Can anyone suggest me how to create a structure for target side and how to map them.
    Regards,
    CJ

    Hi Rajan,
    The table structure is
    [PO_DATE]
          ,[VENDOR_NO]      ,[PAYMENT_TERM]      ,[MATERIAL_CODE]      ,ORDERED_QTY]      ,RECEIVED_QTY]                                 
          ,[UOM]       ,[RATE]       ,[CURRENCY]       ,[PO_EXCRATE]       ,[TAX_CODE]       ,[BASE_VALUE]       ,[TAX_VALUE]
          ,[TOTAL_VALUE]       ,[ADVANCE_PAYAMT]       ,[TOTAL_QTY]        ,[SNO]       ,[POLINEITEM]
    Datatype structure:
    PO_XI_MT_ORDERS05 1-1
    STATEMENT   1-UNBOUN
      TABLENAME 1-1
        ACTION   optional
        TABLE    1-1
        ACCESS  1-1
           PO_NO   0-1
           PO_DATE 0-1
    Correct me if im wrong.
    Regards,
    CJ
    Edited by: kuncjy on May 5, 2011 11:32 AM

  • SAPF150D-Dunning Notice Print - With Update of Line Items and Master Record

    When I am running this program SAPF150D(Dunning Notice Print - With Update of Line Items and Master Records) with a variant containing run date, runc id, update mode, pimmed & pcount; the job is failing to execute. It is giving message like,
    "The field symbol is no longer assigned because there was an attempt makde previously in a Unicode program to set the field symbol using ASSIGN with offset and/or length specification. Here, the memory addressed by the offset/length specification was not within the allowed area."
    "GETWA_NOT_ASSIGNED_RANGE" "SAPF150D" or "F150DFS0" "SORTFELDER_ERMITTELN"

    Hi,
    Search for routine FORM SORTFELDER_ERMITTELN
    in SAPF150D.
    Put a breakpoint in statement
    ASSIGN (T047F-FELDN) TO <H1>.
    in above routine and debug to the point where error is occuring.
    Most likely there is a mismatch in the length assigned to some field FELDN in table T047F.
    In that case, simply change the T047F-LENGT field accordingly in change mode.
    Cheers,
    Vikram
    Edited by: Vikram Jalali on May 27, 2008 5:56 PM

  • Facing problem while updating IInfotype 0009-bank details through workflow

    Dear SAP Gurus,
    I am facing a problem while updating Infotype 0009 through workflow which is integrdated with portal.
    Scenario:
    Employee logins to portal and changes his/her bank details like payee name, bank key, account number, postal code and city of bank, bank name etc.
    Once he submits the request, my workflow is triggered through SAP_WAPI_START_WORKFLOW which is called from portal and goes through various approval steps and finally reaches the step where the container elements are finally to be updated in IT0009.
    Field bank account number (BANKN), which is part of table PA0009 are easily updates using the FM HR_INFOTYPE_OPERATION by first enqueuing the employee number and after the update dequeuing it.
    However fields like payee name (EMFTX) bank key (BANKL) , bank name(BANKA -structure BNKA_BF-this is automatically fetched based on bank key) and postal code(BKPLZ) and city of bank (BKORT) are from structure Q0009 (on the infotype 9 screen level) and from table BNKA (at table level). The problem is that these are not getting updated by HR_INFOTYPE_OPERATION as they are not the part of infotype 9.
    Can anyone help me to understand how can these fields be updated ?
    Quick help will be highly appreciated.

    Hi Spantaleoni,
    Thanks for your quick response.
    Well actually the table BNKA is a master table for the bank information and we must not create entries in it or update the table programatically,  rather we should  use the available data in it.
    Now say employee currently has bank as A and he wants to change it as B which is available in BNKA then he will just select the bank B from search help provided in portal which again comes from table BNKA only. Employee then submits the info and it must get updated in the infotype PA0009.
    As far as think, this should be done on screen level of infotype PA0009 as I have already mentioned that certain fields are coming from structure Q0009 and they cannot be updated on PA0009 table level.
    I am just looking for way through which I can update the screen of infotype PA0009 of employee through workflow.
    Regards

  • Function module for BOM Update all line items at a time

    Hi,
    Please enlightenn us, which FM is do the update for BOM item datas. ( current FM is updated line item one item then come out and log in again updating another line item , thus cause more error are facing.)
    we want a FM to update one time all the line time and come out from the screen.
    Thx
    Sathiya

    HI,
    As suggested above use CEWB or if you want to manage it via a Z program then use:
    CSAP_MAT_BOM_MAINTAIN
    or
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN (Use these 3 in sequence, refer to the help file on the FM)
    CSAP_MAT_BOM_CLOSE
    Hope it answers your query.
    Regards,
    Vivek

  • There was a problem while updating ios 7.1 now my ipad isnt starting up just shows a symbol of itunes with a arrow towards it with its USB cable

    there was a problem while updating ios 7.1 now my ipad isnt starting up just shows a symbol of itunes with a arrow towards it with its USB cable

    YOU ARE IN RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.

Maybe you are looking for

  • Urgent please help(program to kill running process)

    I am trying to execute "alter system kill session '9,32'" from my java program.But the query doesn't seem to get executed. please help me. Here is my code..... package package6; import java.sql.*; public class killProcess{ public static void createTa

  • Have windows Xp-SP3/IE8. Have trouble in installing 11.1.102.62 .Any suggestions please

    Have windows Xp/SP-3/IE8. Have problem in installing 11.1.102.62. Would appreciate suggestions to resolve the problem.

  • TAX LINE ITEMS

    Hi Experts, This is Suma Mani ,my client having retail stores in India and back support is SAP ECC6.0.My business wants cummulative tax figures would requires post with sales docuemetns not line item wise. Evey busines transaction should be one tax l

  • Bash script to change a string in /etc folder?

    I am wanting to create a script to change one of the values for the authorization file.   (See Article TS3287 in the KB) I assumed that I could use the sed command to do this, but I am getting an error when attempting to run.  Any ideas? Below is the

  • Illegal State Exception in JSP login

    I had a working log in/check password systems for a low security application. User types in username and password and this is sent to the checkpassword.jsp. Using Server variables I counted the number of attempts and if it was more than three, they w