Placing delivery block on the inbound Orders IDoc (SO Process)

Hi EDI Gurus,
I have a small question.
I know we can set a delivery block using E1EDK01-LIFSK.
But I check a base UOM @ item level. If it is not allowable, then I should place a delivery block.
I am using user exit EXIT_SAPLVEDA_001.
But how can I set a delivery block @ header level with information available  @ item level.
Say:
case zedidd-segnam.
when 'E1EDK01'
XXXXXXXXXXXXX
when 'E1EDP01'.
ze1edp01 = zedidd-sdata.
zint-vbap = zxvbap
zint-vbak = zxvbap.
if  ze1edp01-MENEE ne 'EA'.
place delivery block
endif.
How can I do this.
Can anyone throw some light. Even code/field help will be helpful.
Thanks,
Matt

Throw some light Gurus

Similar Messages

  • How to delete E1EDP19 002 segment frm the inbound ORDERS IDoc?

    Hi ABAP/EDI experts,
    I am implementing an User exit related to inbound Sales order EXIT_SAPLVEDA_001.
    Most of the time my IDocs contain the below segments.
    E1EDP19 001 (QUALF = '001')
    E1EDP19 002 (QUALF = '002')
    Sometimes, IDoc contain only E1EDP19  001 (QUALF = '001') segment.
    My problem is whenever i have two E1EDP19 segments, i want to delete the 1st E1EDP19 segment and retain the second E1EDP19 segment.
    Can anyone tell me the pseudocode for deleting the 1st E1EDP19 segment from the inbound orders IDoc.
    Am i using the correct user exit??
    Thanks,
    Creasy Matt
    Edited by: Creasy Matthew on Jan 22, 2009 12:56 AM

    Hi Matt,
    You can loop on idoc_data internal table. This table will be having all the data and the segments.
    data: l_count type i value 0,
            l_tabix type sy-tabix.
    LOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.
    CASE idoc_data-segnam.
    WHEN e1edp19.
    l_tabix = sy-tabix.
    l_count = l_count + 1.
    if l_count = 2.
       l_tabix = l_tabix -1.
      delete idoc_data index l_tabix.
    endif.
    ENDCASE.
    ENDLOOP.
    I hope this will work.
    Please let me know if any issues.

  • Mass delivery block in the sales order

    Hi
    Is there any way to remove the delivery block at the itel level in the sales order using the mass.
    I have some thousand of sales orders with the delivery block at item level.
    please let me know, this is urgent requirement.
    Thanks
    Aravalli

    Dear Aravali
    If I am correct, you cannot assign delivery block in sale order at item level, but can assign Reason for Rejection at item level.  Only at header level, delivery block is there.
    Nevertheless, if you want to remove the reason for rejection, go to MASS, input BUS2032 and execute.  There select [Sales Order Item Data]  and click on Fields. Select the field MASSVBAP-ABGRU and execute.  Give the required sale orders which you wanted to change and execute.  You can change and save so that the block will be removed at item level.
    Alternatively, if you are referring to field [LIFSK]  in that case also, select Sales Order Item Data and click on Fields.  There choose the field MASSSDHEAD_S-LIFSK and execute.  Make the required changes and execute.
    thanks
    G. Lakshmipathi

  • Update delivery block on inbound Orders IDoc

    Hi Folks,
    I am using the following to code to place delivery block.
          zvbak-lifsk = zblock. "ZZ
          MOVE: 'X' TO z_d_flag_k-kde2.
          dxvbak = zvbak.
    But some how my code is not placing delivery block on the sales order.
    Can you guys tell me what am i doing wrong here??
    Thanks,
    Matt
    Edited by: Creasy Matthew on Jul 29, 2009 4:19 PM

    Hi,
    Could you please tell me the IDoc type and Inbound Function Module u are using.
    is it ORDERS05 and  IDOC_INPUT_ORDERS

  • How to place a delivery block at line item level from Inbound ORDERS IDoc?

    Hi EDI/ABAP Experts,
    Can anyone please tell me how to place a delivery block at line item level from Inbound ORDERS IDoc?
    I tried using exit "EXIT_SAPLVEDA_001'. But there is no LIFSP field in either of XVBEP and YVBEP structures.
    Can you guys throw some light. How to place a delivery block @ line item level on sales order from Inbound ORDERS IDoc.
    Thanks,
    Matt .

    Look into the Include: LVEDAF5A that is the only place where this exit is hit... double click on the Structures and look which structure has billling block field.. and use that..
    FORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
      CALL CUSTOMER-FUNCTION '001'
        EXPORTING SEGMENT = IDOC_DATA
                  DVTCOMAG = VTCOMAG
                  DXMESCOD = IDOC_CONTRL-MESCOD
                  CONTRL   = IDOC_CONTRL
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DD_FLAG_P = D_FLAG_P
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        CHANGING  DXVBAK   = XVBAK
                  DD_FLAG_K = D_FLAG_K
        EXCEPTIONS
                  USER_ERROR = 01.
    If you are in ECC6.0  you can also use Enhancement point : INTERPRET_IDOC_ORDERS_01 SPOTS ES_SAPLVEDA. in include: LVEDAF2U

  • Which table stored the Inbound ASN IDOC # and corresponding In.B Delivery#

    Hi,
    May i know which table stored the inbound ASN IDOC# and corresponding created Inbound Delivery number??
    Thanks!!

    Dear Hoo Laa,
    You may find the Sales Organisation/Distribution Channel details in PO itself (Shipping Tab). Table where you can get Sales Organisation/Disribution Channel is EKPV.
    Regards
    Samier Danish

  • Delivery block in the schedule lines.

    Hi,
    Mine is a MTO scenario. I am using planning strategy 50. So a planned order ---> production order will be created against MRP run  against each sales order.
    When i am placing a delivery block at the header the system is working fine. Its deleting the planned order(converted production order).
    when I am placing a delivery block at the schedulle line its not working fine. its not deleting the underlined planned order or production order.
    what configuration should I do to make this work.......

    Hi,
    Look at the help (press F1) on  the field confirmation block at SPRO-> Sales and Distribution ->Basic functions ->Availability check and Transfer of Requirements ->Tranfer of Requirements -> Block quantity confirmation in delivery blocks ->Reasons for and Scope of Delivery Blocks: Transfer of Req. blocks.
    It looks applying delivery block at schdule line level will not delete the passed requirements. This is standard SAP behavior. If you want to change this nature, then you may need to use an User-exit.
    Following is description given for the field confirmation block;
    Confirmation block
    Indicates whether the system, in addition to blocking delivery, also blocks the confirmation of order quantities after an availability check during sales order processing.
    Example
    You may want to block confirmation of sales orders where the creditworthiness of the customer is in question. In this case, you set the confirmation block for the delivery block that relates to credit problems. During sales order entry, when you enter a delivery block because of credit problems, the system, after you save the order, does not confirm any quantities for delivery. In this way, the goods remain available for other customers.
    Note
    If, before you save a sales order, you look at the schedule line overview, you can see what the system would confirm, if the block were not set. However, as soon as you save the sales order, the confirmed quantities are automatically reset to zero.
    Dependencies
    If you enter the delivery block at header level, the system transfers the desired delivery quantity for all schedule lines in the requirement. The confirmed quantity is deleted. This function is not available when you enter the delivery block at schedule line level.
    Regards

  • Delivery block on the line item and on schedule line

    why are there two delivery block on the line item and on schedule line  respectively in the sales order? which one is exactly used for blocking delivery order from creating ? thank you very much!

    Hi
    The reason being, each line item can have more than one schedule line. If the line item has only one schedule line, the block at item level or SchLine level gives the same result. If the line item has two schedule lines, and if you want to block only specific delivery(one among the two schedule lines) the block at item level blocks both the deliveries and if you use delivery block at schedule line level, you can block only the required scheduled delivery.
    Thanks,
    Ravi

  • Regarding Inbound Order Idocs

    Hi All,
    I want the tables in which Inbound Order Idocs were stored,
    Use WE02 transaction,
    i am trying to find the tables , but i cant, plz any body help me in this problem,
    Balu.

    Hi bala,
    do one thing..u wil get the idoc number as 0000000000123456(16 digit)..
    please chek the document numebr in the ztable,say for example in ur ztable it  is 10 character length.so u have extra 6 characters.
    so what u do is use CONVERSIONEXIT function module and delete the leading zeros,
    if u do like this.it will be 10 characters...
    now u can write the select query as u written,it won't give any error..
    Regards,
    Nagaraj

  • How to get know the Sales Order IDOC#, if I know the created Sales Order#?

    Hi Experts,
    Let me know that, How to get know the IODC #, if I know the Sales Order#?
    Scenario is that, sales order(say 12345678) was created from Inbound EDI. I also Know the MATERIAL too.
    So, How to pull the associated Inbound ORDERS idoc, which is created this Sales order-12345678?
    Is it from EDID4 table? or EDIDC? or any thing else?
    reples r appreciated.
    thanq
    Edited by: SAP ABAPer on Sep 8, 2008 5:29 AM

    Hello
    This can be done much easier using fm SREL_GET_NEXT_NEIGHBORS:
    Input:
    OBJECT-OBJKEY = <number of sales order>  " with leading zeros!!!
    OBJECT-OBJTYPE = 'BUS2032'
    MAX_HOPS = '01'
    Result:
    NEIGHBORS-OBJKEY = <IDoc number with leading zeros>
    NEIGHBORS-OBJTYPE = 'IDOC'
    NEIGHBORS-ROLETYPE = 'INIDOC'.
    Regards
      Uwe

  • Delivery Block status in Sales order

    Hi Friends,
    I have a requirement of creating a User Exit for  updating the delivery block status in Sales order creation,can you explain me what is meant by delivery block status in Sales order creation?
    Regards,
    Dinesh

    Hi Dinesh,
      Delivery block is used when you do not want to create a delivery for any particular reason.
    Th reason may be that the credit limmit for customer has exceeded and you don't want to create any further delivery for that.This block can be created in the overview screen of sales order.
      The important thing is that you can put only those delivery blocks which have been assigned to your delivery types.The path is spro--logistics execution--shipping -delivery-define block reasons for shipping.
    Reward points if it helps.
    Regards
    Karan

  • Automatically creation of delivery group in the sales order

    Hi Can u please tell me how do i create automatically delivery group in the sales order.

    Hi,
    You can maintain the complete delivery indicator in your Customer Master(Ship to Party ) record shipping tab(Partial deliveries).
    As per SAP ,This indicator
    Indicates whether a sales order must be delivered completely in a single delivery or whether the order can be partially delivered and completed over a number of deliveries.
    There by it can form a Delivery group.
    Have a Nice Day.
    Regards,
    Ravi

  • In MIGO, i need to see delivery dates from the purchase order

    Is there a way to see in transaction MIGO, the delivery dates from the purchase order?  I hope there is some exit or BADI or BAPI or .... to perform this copy function? 
    We have multi-line POs for the same material with staggered delivery dates and the Warehouse needs to know which PO line to receive against.

    when you enter the PO number in MIGO and hit enter, then you only get the items that can be received.
    If you make sure that the PO items are created by ascending delivery date, then you can always take the first.
    if you have the personal setting to display all items (even the already received ones), then you can take the first with a quantity proposal. already received items do not propose quantities.
    I would ask purchasing to tell the vendor that he has to state the PO number along with the item number in all papers (delivery note, invoice).

  • How to track the Inbound child IDOcs in PI 7.4 Single stack

    Hi Friends,
    I would like to know the procedure of tracking the Inbound child IDocs in PI 7.4 Single stack.
    Here is the detailed description.
    Say we are getting the data from third party system and the message may have multiple IDOcs in it. The message has processed successfully from PI and reached to the target system(ERP). So, now my question is how to track the IDOc count with in that message.
    Please suggest on the same.
    Thanks in Advance,
    Venkateswarlu.

    Hi Hareesh,
    Thanks for your inputs. According to the link IDOC Status, Tracking in SAP PI/PO Single Stack I am thinking the required funcionality is not there in PO 7.4, but still i would like to have little more clarity before moving further.
    I will explain what what was happening in PI 7.11 so that you can understand what i am looking for in PO 7.4.
    We will get the data from third party system in xml format, we had to search for the messages based on interface name and time range within SXMB_MONI. After getting the result(say the output is 100 messages), we will download the values of "Outbound Reference" field(which is a key to find the child messages for messages resulting in an Interface Collection). Below is the snap of Outbound Reference field for your reference.
    Now we will go to the table IDXRCVPOR in SE16(within PI) and put the values of Outbound Reference field in Text 24 and execute. Here we will get all the child messages.
    Now please let me know if this kind of scenario is possible in PO 7.4.
    Thanks,
    Venkat.

  • Deletion of delivery and rejecting the sales order

    hi,
    my requirement is
    we have to delete the delivery and reject the sales order.
    can any body provide me the code for that.
    it is very urgent..
    thanks in advance.

    how do we come to know abt ur Config settings  in case of rejecting Sales Order ? Just ask ur functional person what to do in  this case ?
    Regards
    Prabhu

Maybe you are looking for

  • Error message while creating shopping cart

    Hi I am facing issues in SC creation. Getting error messages  u2018purchasing group for follow on document missing & u2018purchasing organization for follow on document missingu2019. Is it something to with RFC or authorizations arjman

  • Trying to access remote FreeNAS AFP share halts system!

    Trying to access a remote FreeNAS box, with AFP sharing set up. (AFP works fine over the LAN, just not over WAN.) From a remote location, if I go to Finder and `Go>Connect to Server` then enter `afp://myserver.com`, I get prompted for username & pass

  • Can't see Windows 7 Boot Camp partition from Mac

    I've had a Win7 boot partition on my 2011 MBP for a while and it boots just fine. I have a Mac boot partition, a Mac data partition, and a NTFS Win 7 partition. But the Boot Camp partition is greyed out and invisible when booted in to the Mac. When i

  • Exit in VA01 transaction

    Hi All, I need to validate VA01 transaction with the following things. In the second screen of VA01after entering the feilds sold-to-party, Sold-to par and Purch.order no then press enter then the feild Incoterms will fill automatically. But what i r

  • Migrate to new domain and new SCCM

    The migration scenario is this: All Clients are in Domain1 and are managed through SCCM 2012 with System Center Endpoint Protection 2012. Some of the clients need to join a new domain and be managed through a new SCCM 2012 R2 server with System Cente