How to update delivery block in delivery(vl02n) using BAPI

hi all,
i have to update delivery block of a delivery using a BAPI. can any one suggest which bapi i have to use. and if possible let me know what are the mandatory fields that i have to fill in that bapi.
thank you all in advance

HI,
Use the BAPI BAPI_OUTB_DELIVERY_CHANGE..
Pass the delivery number DELIV_NUMB in both HEADER_DATA and HEADER_CONTROL..
In HEADER_DATA-DLV_BLOCK pass the delivery block.
In HEADER_CONTROL-DLV_BLOCK_FLG pass 'X'
Thanks
Naren

Similar Messages

  • How to Update PO(ekko and ekpo) by using Bapi

    Hi Experts,
    I am very new in Abap ,I want to update some fields of Purchase order through Bapi.
    In  Selection screen  i need these things,
    PO Number ,  material, Delivery date
    and i want to update the below fields of  Purchase order(PO)
    1.   Street/House number  ,Postal Code/City  in header level (Give any dummy values for street/house number city  and postal code)
    2.  PO quantity, Delivery date , net price  for all items which has matching material as in selection screen
    and i am not giving data from excel sheet ,,i am giving data directly or through selection screen for the above mentioned fields.
    please give me some solution or sample code so that i can do it.
    Thankx in advance..
    Ritesh

    First declare the header and item structure to pass the values to FM. Now the values that you enter in selection screen are captured in internal table. So you can loop this internal table and pass the values to function module item and header details.
    EX:
    Decleration
    DATA: PO_HEAD TYPE BAPIMEPOHEADER,
               PO_HEADX TYPE BAPIMEPOHEADERX,
               PO_ITEM TYPE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
               PO_ITEMX TYPE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
               COUNT TYPE I VALUE 1,
               RETS TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    Pass the values to po_head po_headx po_item po_itemx.
    loop. selection screen internal tables
    append . Append the internal tables
    endloop.
    now call the bapi and pass the values.
    CALL FUNCTION 'BAPI_PO_CHANGE'
       EXPORTING
         PURCHASEORDER                = PO_NUM
    *   POHEADER                     =
    *   POHEADERX                    =
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    * IMPORTING
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       =  RETS
        POITEM                       = ITEM
        POITEMX                      = ITEMX
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   POHISTORY                    =
    *   POHISTORY_TOTALS             =
    *   POCONFIRMATION               =
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    Hope it helps.
    Regards,
    K.Srikanth Reddy.

  • How to update VBFA while sales order creation using BAPI

    Hi,
    I am trying to create sales orders for each schedule line items while inquiry creation.
    This I have done in the user exit in the VA11 program MV45AFF using BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
    along with the Inquiry, Sales orders are also getting created. But I am facing 2 problems.
    1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order   
        number.
    2) It is not updating the VBFA (SD flow) table.
    Regards,
    Krishna.

    Hello,
    1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order
    number.
    - are you passing simulation parameter (TESTRUN) as 'X'
    2) It is not updating the VBFA (SD flow) table.
    - Please use BAPI_SALESDOCUMENT_COPY for copying and updating VBFA table
    Thanks
    Krish

  • How to proceed After blocking the delivery.

    Hi SD Experts,
    i have a doubt how to proceed after blocking a delivery. My scenario is this " i created a sales order and blocked the delivery of it. So i cant able to create a delivery for that sales order." . Then what should be done to create a delivery for that sales order ( i.e. How to release the Blocked delivery status and to create a delivery)
    with regards ,
    James
    Valuable answers will be rewarded....

    Definately Vasanth,
              it will work.
    Mostly billing block will be used in Credit/debit memo's.
    Only the authorized user can remove the block in VA02.Then user can able to create billing.
    This wont happen  in Credit management issue,because we wont maintain any billing blocks in credit management.
    block in credit management like:,
    sales order level-
             ( 2 release the Credit mgmt block in Sales order- VKM3)
    delivery level - 
             ( 2 release the Credit mgmt block in Delivery doc's - VKM5)
    *( 2 release the Credit mgmt block in Sales doc's & Delivery doc's at a time - VKM4)
    at the time of Goods issue
    Hope it adds the information .
    reward point if it helps u

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • How to update the iTunes in the iPad using the I pad

    How to update the iTunes in the iPad using the I pad?

    Then you cannot update without Conecting to iTunes on a computer.
    The Over the Air Feature is only available on iOS 5 or later.
    You have iOS 4... See Here...
    http://support.apple.com/kb/HT4972
    OR...
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • How to update and insert the records without using Table_comparison and Map_operation?

    How to update and insert the records without using Table_comparison and Map_operation?

    Use either join or MERGE see this Inserting, Updating, and Deleting Data by Using MERGE

  • How to transfer range parameter from vb when using bapi calling

    Hi,everyone.how to transfer range parameter from vb when using BAPI calling?

    Did you get the solution to your problem?  Can you please share it with me. I have a similar problem. I have a VB program that calls RFC function. It works with a single parameter but not with a range of parameters. If you have the solution, could you please share sample codes with me? Thank you so much.

  • How to place a block in delivery which should prevent further Billing

    Hi Experts,
    One of our clients has created a delivery and done PGI on that as well, but for some reason they do not wish to go ahead with processing Invoice for this Delivery, however this delivery show up in VF04 and they would want to block this delivery for Invoice.so that by mistake it does not get processed in VF04.
    Is there a way we can go to delivery can block it from Billing?

    Hi
    Welcome to SDN
    Set the billing block in Order type in VOV8 in the billing tab for your sales document type
    If the billing block is set in order type the sales order can be created  and delivery can be created---picking and pgi can be done but not billing
    From delivery settings this option is not available (either thro delivery type or delivery item cat)
    Regards
    Raja

  • Delivery block on Sales order using Condition Value Formula routine?

    Hi ABAP Experts,
    I want to place delivery block (LIFSK/LIFSP) on sales from Condition Value Forumla routine 09.
    I have a structure komp and xkomv.
    I don't think the field exist in either of the structures.
    How can possibly place block on the Sales if there is wide difference in both the prices.
    I know the standard SAP changes the status of sales order to incomplete and we have to do V.25 in order to process.
    But need specific delivery block 'ZZ' to identify it.
    Can you explain this??
    Thanks,
    Matt

    Helllo O ,
    i think u can enhance those structures ....for more info...check documentation in SPRO.
    regards
    Prabhu

  • Removing of Delivery block in Sales Order using Authorization

    Hello,
    I have a urgent requirement on removing a Delivery block using authorization.
    The object V_VBAK_AAT is assigned to me and the ACTVT : 43 is permitted so I can release the block.
    As this was  not working I have created my own object with values ACTVT as 01, 02 , 43 and LIFSK : 1-10,11,12-99 .
    I am trying to remove the block from VA14L from VA14L I select my order with respect to delivery block and it navigates to VA02.
    From VA02 I am trying to remove the block.
    As this requirement may be simple but it is blocking my development.
    Thanks.

    Please correct whether I understood your issue correctly or not.
    You have developed the program only to put delivery block to Sales Order. This block should be approved by Authorized people for allowing the users to create delivery else Sales order delivery should not be possible. Is that program has any other additional functionality other than setting Delivery block??
    To keep delivery impossible till the Authorized person approves Sales order, you have the option of User Status. Process for creation of User Status for your requirement
    Create User Status Profile in OIBS
    Keep BLCK (Blocked for Delivery) & APPR (Approved for Delivery) as 2 statuses (No. of status can be as per your requirement. Here, simply I have 2 statuses)
    Assign Object types as "Sales Order Header" (if you want the Authorized people to approve at header level) or "Sales Order Item" (if you want the Authorized people to approve at Item level, may be for partial delivery)
    Keep BLCK as Initial status & Double click on BLCK status & click New entries on "Business transactions"
    There are many Business transactions such as "Create Delivery" / "Create Goods Issue for delivery". As per your requirement, select Forbidden option in one of the above mentioned business transaction
    Create Authorization Key in BS52 for Authorized People, say, as MNGR (Manager)
    Assign that Authorization Key to APPR user status in User status profile
    Using PFCG, you can create separate role by assigning this Authorization key
    This can be different kind of solution from your way. For reference, you can refer below document. Document content points some other space & transaction. But you can relate to above steps mentioned.
    User Status in SAP

  • How to update multiple records in a table using procedure?

    Dear All,
    1 am using 11.1.2.1.0
    my question is i have a table like
    emp id(primary key), empname,location
    1                             damby      blore
    2                             rocky       kormangala
    3                              biswa     india
    my question  is i need to write one procure that at a time i can update empname and location(wat the value are there in empname and location i  need to change at a time).
    thanks
    Damby

    Hi, Damby,
    That sounds like what the UPDATE statement does, exactly.  Just use an UPDATE statement to change any number of columns in existing rows.  You don't need a procedure, but, if you're using a procedure for some other reason, you can do the UPDATE in the procedure.  UPDATE works the same in SQL or PL/SQL.
    Sometimes MERGE is more convenient than UPDATE.  Like UPDATE, it can change any number of columns, either in SQL or PL/SQL.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    In the case of a DML operation (such as UPDATE) the sample data should show what the tables are like before the DML, and the results will be the contents of the changed table(s) after the DML.
    Explain, using specific examples, how you get those results from that data.
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to update multiple rows in one query using php

    i am new to this can any one help me how to update multiple rows at a time i am doing an school attendance page

    Often the situation is such that you have multiple courses across a range of dates.So students may take more than one course, and you need to track attendance for each course date. The following graphic demonstrates this:
    In such a situation, you need four database tables as follows:
    students (student_id, student_name, etc.)
    courses (course_id, course_name, etc.)
    students_courses (student_id, course_id)
    attendance (student_id, course_id, dater)
    A fifth table may also be needed to define the dates of courses, but you may also be able to build this array programmatically by using PHP's robust date functions, which can give you, for instance, all the Tuesdays and Thursdays between a start date and end date.
    The students_courses table simply keeps track of which students are taking which courses, so it has just two columns for the primary keys of both of the main tables. The attendance table is similar, but it also includes a date field. The following view of the attendance table demonstrates this:
    So if David's solution does cover your needs, consider yourself lucky, because this could quickly grow from a beginner-appropriate project to a moderately advanced one.

  • Can any one tell me the exact procedure of how to update XPERIA NEO V to ICS using both PC companion and SUS.

    Can any one tell me the exact procedure of how to update XPERIA NEO V using both PC companion and SUS.
    Please provide required link also for SUS and step by step procedure for the same.
    It will be really helpful.

    SUS http://www.sonymobile.com/global-en/tools/update-service/
    You just need to connect your mobile to pc companion follow the onscreen instructions
    Use pc companion
    http://www.sonymobile.com/global-en/tools/pc-companion/
    Discussion guidelines.
    Message me or any other moderator to seek help regarding moderation.

  • I have no idea how to update my apps on my iPod using the new iTunes

    My iPod Touch says that I have 27 updates which I know is right but when I click to go on the Apps Store and update them it just takes me to a white screen...
    So I tried using the newly updated iTunes which I'm not use to yet but I don't have a clue where to find a "Check for updates" link for my apps. I'm finding it diffiuclt to even simple things...
    Any help would really be appreiciated!

    You can only update via the ipod with ios 5 or later.
    You need to update via itunes on your computer as always.

Maybe you are looking for