Updating condition records in an outbound delivery

Hi,
I'm trying to update condition records in an outbound delivery but couldn't find any suitable BAPI for the same so I just implemented the BADI 'le_shp_delivery_proc' and called a FM inside the method SAVE_DOCUMENT_PREPARE' which does a call transaction to VL02N to update the condition records. But the problem now is that, when I try to save this delivery, again the same BADI is triggered and goes through the same process of call transaction and thus gives me an error message that the delivery is locked as it indeed is.
Can somebody suggest a way out of this problem. ??
Thanks
Ashish

Hi,
@praveen: I tried the solution provided by you and it worked for me in this context. But it seems this BADI gets triggered every time the delivery is getting saved. So for my test purposes, I'm triggering this BADI in a program, but in actual scenario, the BADI would be called on every sy-ucomm = 'SICH_T' i.e. SAVE. hence, I can't separate my piece of code using this condition.
I'm trying to call my FM(update module in collective run mode) inside this BADI in backgrnd task as a separate unit but this doesn't seem to work.
Any more suggestions?
Thanks
Ashish

Similar Messages

  • Update condition records for delivery

    Hi
    Can anyone tell me is there is any function module or IDOC which updates condition records for Item level and header level for a delivery??
    I checked the standard BAPI's but they dont do..
    also can we use bdc ??
    Thanks
    Thilothama
    Message was edited by: Thilothama v

    Sorry, can't help there as I don't have access to that environment.
    Srinivas

  • Function modules etc for Updating condition records

    Hi Guys ,
                   Anybody have any idea on how to update condition records in CRM . I have used CRMXIF_COND_REC_SLIM_SAVE but this only updates product conditions ( condition table SAP004 ) . I want to update condition table SAP012 which is maintained in transaction /SAPCND/GCM .
                   Any ideas ?
    Regards,
    Radha

    Hi Radha,
    Even I am using the FM CRMXIF_COND_REC_SLIM_SAVE   to update conditions in the conditions table SAP004 and SAPSC012 , but for me the conditions are getting updated in table SAPSC012 but not SAP004.
    I want to update using the conditoin record guid and want to
    update the condition rate value.
    Can you please help .
    Thanks,
    Poonam.

  • Update Condition records of an existing Service master in SRM

    Hi All,
    I want to develop a functionality to update Condition records like add new Vendor or delete vendor or change Amount etc. of an existing service master in SRM, which can be possible manually by using tcode COMMPR01.
    Can you please suggest any standard FM or BAPI name to update existing Service Master. If you please provide sample code to update service master then it will be more helpful for me.
    Regards
    Anirban

    FYI, the output of this call returns something like:
    <?xml version="1.0" encoding="UTF-8"?> 
    <queryplan>
        <union>
            <fullOuterJoin>
                <statement index="1">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="2">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.nb_guests) FROM SALES, INVOICE_LINE, SERVICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) AND ( SERVICE.SL_ID=SERVICE_LINE.SL_ID ) AND ( SERVICE_LINE.service_line = 'Accommodation' ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
            <fullOuterJoin>
                <statement index="3">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="4">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.days * INVOICE_LINE.nb_guests * SERVICE.price) FROM SALES, INVOICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
        </union>
    </queryplan>

  • Automatic update of HU data in Outbound delivery

    Hello all,
    I would like to create an ABAP program to automatically update the HU data in an outbound delivery. The purpose is to have an excel spreadsheet with the HUs per delivery and download them into the outbound delivery without the need to use manual actions.
    Does anybody know of a FUNCTION, BAPI, IDOC or anything else that may assist me in this task ?
    Thanks,
    Isaac

    Go To transaction BAPI, look at Logistics General -> Handling Unit Management -> Handling Unit
    If you want to create a delivery and know the materials and HUs just populate the delivery IDoc and process it.
    If you want to pack material by uploading this spreadsheet then look at LM* transactions as that is quickest way to find what you want.
    Mike

  • BAPI_GOODSMVT_CREATE update VBFA or not for Outbound Delivery?

    Dear Gurus,
    When I try to use BAPI_GOODSMVT_CREATE to do the goods receipt for the outbound delivery as the replacement for MIGO transaction, I use 01 as movement code and the bapi create material document and updating MSEG. But it doesn't update VBFA so the items is still showed in MIGO and cannot post there (because it is already moved in BAPI in program.)
    Anybody have any suggestion for this situation? Thanks a lot and points will be rewarded.

    Hello,
    When you use BAPI_GOODSMVT_CREATE  to post Goods Receipt for outbound delivery, reference documents at header and line items should be delivery number and line numbers (BAPI2017_GM_HEAD_01-REF_DOC_NO, BAPI2017_GM_ITEM_CREATE-DELIV_NUMB_TO_SEARCH & BAPI2017_GM_ITEM_CREATE-DELIV_ITEM_TO_SEARCH). Then only document flow will be updated.
    Thanks,
    Venu

  • Updating item text in the outbound delivery

    Hi
    I have a outbound delivery in the system . I want to update some text in the "item text" through a program. how do i do this. sample code would be great.
    thanks
    sankar

    Hi
    thank you very much for your reply.
    Can you explain more about the inport parameters of the FM. lets say for example I need to update "item note" in the item of a outbound delivery with text " I am doind the testing". for this scenario what the are the parameters i need to send to the FM
    thanks
    sankar

  • Updating Serialnumbers automatically while creating Outbound Delivery

    Hi Experts,
    My requirement is to populate serial numbers automatically while saving the outbound delivery (VL01N).
    I tried with user exits, but I am unable to succeed.
    I am using ECC5.
    Any help would be greatly appreciated.
    Thanks,
    Veera K

    Hi Veera,
    For an example if there is a  need to update some table with delivery number and serial number on saving a delivery:
    in include MV50AFZ1:
    FORM USEREXIT_SAVE_DOCUMENT.
    *{   INSERT <TR#>
    "work structure LIKP has the header info here
    "Use that and fill the required workstructure and update the correponding table
    *}   INSERT
    ENDFORM.

  • PO outbound message control - Condition record / PO IDOC outbound user exit

    Guys,
    I have a system with PO outbound message control sending PO idocs to a unique plant that is set up as a customer in the partner profile. I am using a custom message type and RSEOUT00 to send my idocs with custom message type to this plant. This interface works fine. Now my requirement has changed. I need to send PO's to varying plants (depending on the plant in PO item- all items on my POs belong to same plant).
    I noticed that i cannot create condition tables with PO type and Plant combination. (SAP Note 457497 .Q-34).
    So I have decided to populate all my PO idocs with a generic receiving partner number '9999' and planning to change this somewhere in a user exit. I found an user exit which looks helpful.
    EXIT_SAPLEINM_001 .  FM
    MM06E001 - Enhancement.
    But somehow this exit is not triggered in during PO creation ME21N or change Me22N/Me22.
    Is this because I am using a custom message type instead of standard message type ? (I still use the process codes Me10/Me11). Would this matter ? When should this user exit trigger (during creation of idocs in status 30 or when i run RSEOUT00 to sweep these idocs in status 30 to status 03) ? Any tips will be useful.
    THanks.
    Edited by: Shareen Hegde on Jul 21, 2008 10:13 PM

    I found a OSS note -Note 457497 (Q&A # 34), which talks about the same . This was my assumption too. I was just confused because I saw plant(WERKS) in the field catalag of the access sequence.
    I don't know what header field I can use to map the plant (I agree its a good idea to do this). But I have decided to do it another way. I will change the receiving partner on the control record depending on the plant in an user exit
    -  EXIT_SAPLEINM_001.
    Thanks for your answer , Mahesh.

  • Updating bill of lading on outbound delivery using IDoc/BAPI?

    Hi,
    We're looking to update our existing outbound deliveries with an entry in the bill of lading field. This is the only piece of data that needs changing in the delivery.
    It seems that using IDocs message types like SHPCON/DESADV you cannot just update some header level fields. The BAPI_OUTB_DELIVERY_CHANGE unfortunately does not include bill of lading as one its changeable header fields.
    Can anyone recommend a way how to still achieve this?
    Thanks a lot,
    Ronald

    Hm, it looks like that segment should've worked...
    WHEN 'E1EDT13'.
    S_DT13 = IDOC_DATA-SDATA.
    CASE S_DT13-QUALF.
    WHEN '006'.
    <...>
    MV S_DT13-ISDD S_KOKO-WADAT_IST.
    Did you put the date in the right field (ISDD) and did you try debugging this?

  • Outbound delivery without reference and customer-material info record

    We use outbound deliveries without reference (L0). Several customers want their own material number printed on the delivery notes.
    So we considered using customer material info records. Unfortunately, the customer material number is not copied from the customer material info record into the outbound delivery position.
    Do any customizing settings exist that we might have overlooked? Or is this behavior a "feature"? Any hint would be highly appreciated.
    Best regards,
    Gerald

    Hi Gerald,
    have you ever figured a solution for this issue?
    I'm now facing the same issue and could need some support. I found some documentation for the USEREXIT_CUST_MATERIAL_READ, but I don't know whether that could be used as a solution.
    Please let me know or if anybody else knows something, please feel free to chip in your knowledge!
    Thx & regards,
    Bobby

  • Condition Records in Sales Deal are displayed wrongly as u201CBlockedu201D

    Dear expert I need your help on issue
    Example Sales Deal # 123456:
    If Sales Deal is opened with transaction VB22 (e.g. to add a condition record or to amend one), then all condition records appear first as released (blank in column u201CSu201D status and u201CPu201D processing status):
    But just after a slight scroll within the screen, both columns get a value (u201CAu201D in column u201CSu201D and u201CDu201D in column u201CPu201D) and therefore appear as u201CBlockedu201D and u201CDouble Check Neededu201D:
    But if the SAVE button is pressed, then the system reports, that no changes have been done:
    Actually when we enter with transaction VB22, condition records are not blocked, but released:
    But when we scroll then changes happened even we scroll in Vk12 or VB22
    Condition validity u2013is 10.04.2008 to 25.05.2008
    Regds
    Alicia K

    I know it is late but still iam replying as i got a similar error as it might help others in the future.
    On Creation of VA01 the Condition records were not populate KONV is blank and so when i update condition records on an item i get an error as above. I first updated pricing Conditions on all the corresponding line items and then did the save in VA02 and the SO saved.

  • FM FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE

    Hello vikas,
    I need to develop a interface program FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE.
    Is there ay function module to update or create the condtion records,
    if u have any example interface program to update conditions records please send me.
    regards
    ram.

    This must be your compiler output.
    Basically, it is telling you two things that are wrong - in syntax.
    1. On line number 11 of the file RationalCollection1.java, the compiler expects a type identifier - that would be the object or return type such as int, String, boolean, etc.
    The reason it is doing this is probably due to your not ending a previous statement - like the "expected ';'" error statement. Check your code, make sure that methods (brackets) are closed correctly and there are no open statements (i.e. missing the semi-colen at the end).
    2. On line number 33 of the file RationalCollection1.java, the compiler expected the closing bracket. Thus, you didn't put the bracket where the compiler wants it.
    It appears that you have skipped some lines of code. Those lines are the problem, post them - post lines 30-36 and 9-15 so we can see what is happening around those error lines.

  • Error while uploading conditions records in MEK1

    Hi All,
    I have a code that updates condition records in MEK1 from an excel sheet. The no of records in an excel sheet can go up to 60 k records. If i try to upload 5000 records, the coditions records are saved successfully. But then, if I try to upload 10000 records i get a error saying " Condition blocked by user " . On debugging I found out that the user id is mine. That is, same id as the person who is trying to upload records. The transaction is not open in any window as well.
    My question is, why do we encounter this error and is there any limit to number of records that can be uploaded at a time in MEK1?
    Thanks in advance,
    Sapna

    Hi Rao,
        For blocking you can commit in intevals or you can use wait command but it will take extra time but your records will update in one go,when a condition record is created,then after you try to update for same material or plant thats the reason its blocking,you can either use wait or adjust your excel files and avoid duplication of materials or whatever you are using in sequential manner.

  • Create outbound delivery with GN_DELIVERY_CREATE

    hi,
    how could i create an outbound delivery without reference with fm GN_DELIVERY_CREATE?.
    It is no problem to create this kind of delivery when the delivery positions have a material number. delivery item category is 'DLN' (=standard).
    but i can´t create an outbound delivery with positions which have no material number. delivery itemcateory is 'DLTX' (= text positions without an material number.
    currently i use a batch input programm which simulates VL01NO. But i want to change this.
    can someone please help me how to create an outbound delivery without reference and only with text positions?
    thank you.

    Hi Gurus, is there any function module / Bapi that updates the BOL in a outbound delivery  header created for a sales order

Maybe you are looking for