Problem in creation of delivery with reff to order

Dear,
Experts
while am creating Delivery with the refference to Sales order that time it is giving a error that is
Material 51110002 is not defined for sales org. 2000 distr.chann. lang. E.
Please give some valuable input for which i will solve my problem .
Susmita

Hi
After reading your reply i feel there is some programming debug happening in your system
See that materials are not getting updated  with the  correct sales orgs and DC combinations in  the proper delivery tables that is in LIKP and LIPS
Rightnow i dont have access to SAP to guide you further
In SE16 in both  LIKP and LIPS tables please check whether the material is available in the correct sales org and DC combinations
Mostly it will not be there
That is why you are having problem in delivery
Why delivery tables is not getting updated has to be checked with ABAPer only
Please try to create another sales order for this material and see whether you are getting this error at order itself
If in MM01 if the material is extended for the above sales orgs and DC's
Then again there will not be any error in sales order
Then we can conclude that there is problem in delivery tables
Regards
Raja

Similar Messages

  • Creation of delivery with zero stock

    Hello,
    I have two SAP system, on both system the OSS note below was implemented:
    712516 Delivery item created in spite of VL367 with quantity 0
    On the 1st system, when I create a delivery foritem category LZN that has no stocks the system is allowing me, even if
    I have set value u201CBu201D in the field u201CCheck quantity 0u201D in customizing/configuration of delivery item category LZN (transaction
    0VLP).
    While on the 2nd SAP system, it is not allowing me to create the delivery with the same setup of the 1st system.
    I tried to compare both systems, but I cannot find the difference on why the 2nd SAP system it is not allowing me to create the delivery.
    Is it really possible to still create a delivery for an item category with value u201CBu201D in the field u201CCheck quantity 0u201D in customizing/configuration of a delivery item category(transaction 0VLP)?If yes, could you explain to us how is this possible in SAP?
    My objective here is to proceed delivery even with value u201CBu201D in the field u201CCheck quantity 0u201D in customizing/configuration of a delivery item category(transaction 0VLP) was activated.
    Thanks & Regards

    "On the 1st system, when I create a delivery foritem category LZN that has no stocks the system is allowing me, even if
    I have set value u201CBu201D in the field u201CCheck quantity 0u201D in customizing/configuration of delivery item category LZN (transaction
    0VLP). "
    This sounds like inconsistent incorrect behaviour to me. Do you have any user exit / BADI coding influening this? If so, does the issue occur when you skip the custom code?

  • Creation of Delivery with ref to Sales order

    Hello,
       I am trying to create the Delivery with reference to Sales Order using BAPI  -  BAPI_OUTB_DELIVERY_CREATE_SLS.
    At the of execution , i am getting the error No instance of object type OutboundDelivery has been created. External reference:.
    I have entered the sales order details in table parameter SALES_ORDER_ITEMS of BAPI. (Number range for Deliveries are internal)
    Can you please suggest me what could be the reason ?
    Regards
    Narayana

    Hi,
    Yes, copy controls are maintained for sales order type and delivery type in SPRO settings. The code as below.
    loop at t_vbap into ts_vbap.
          t_order-REF_DOC         = ts_vbap-vbeln.
          t_order-REF_ITEM        = ts_vbap-posnr.
          t_order-DLV_QTY         = ts_vbap-KWMENG.
          t_order-SALES_UNIT      = ts_vbap-VRKME.
          t_order-SALES_UNIT_ISO  = ts_vbap-VRKME.
          t_order-DELIV_NUMB = '0084000156'.
          append   t_order.
    endloop.
    call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
    *DESTINATION logsys
       EXPORTING
         SHIP_POINT              = '0010'
         DUE_DATE                = DUE_DATE
        DEBUG_FLG               = 'X'
      importing
         delivery                = lf_vbeln
         num_deliveries          = lf_num
      tables
         sales_order_items  = t_order
         deliveries                = lt_deli
         created_items         = lt_itm
         return                     = lt_return
    Can you suggest me.

  • Create Multiple delivery with 1 sales order

    Hi,
    I have to create 3 different delivery with 3 different line item in sales order,
    I need to code in RV50C901 only, for every item i am changing LIKP-ZUKRL,but nothing works,
    Please suggest

    Dear Sameer
    As per your requirement run the Tcode VF04 (Billing Due list) and select the Delivery Documents for which you want to to have single Billing Document by clicking on Collective Billing document/Online  Push Button in that screen.
    To Have Single Billing Document for Multiple Delivery you need to have Payer,Terms of Payment,Incoterms(part 1 and part2) same for all materials orelse the billing document will split and this split analysis is visible during creating of Billing document.
    Hope this will help you in solving your problem.
    Regards
    PSH

  • Ristrict user not to go for delivery with out sale order.

    Hi,
    I need some Help in ristricting the user from entering the Delivery document with any sale order.
    As per the requirement all the documents should run in a proper fassion.
    sale order> Delivery> Invoice.
    Purchase Order> GRPO> Invoice.
    If any change in the flow the user should not be allowed.
    Is there any possibility to implement this can you please help me in doing such.
    Thanks,
    Mahi.

    Hello Mahi,
    Is it not a trigger, it is inside store procedure of SBO_SP_TransactionNotification, which is standard part of the SAP B1 installation...
    read the following blog of Lisa :
    /people/lisa.mulchinock/blog/2009/05/22/the-sptransactionnotification-stored-procedure
    ALTER   proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(20),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    BEGIN
    -- Return VALUES
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    SELECT @error = 0
    SELECT @error_message = N'Ok'
    DECLARE @docnum nvarchar(50)
    --     ADD     YOUR     CODE     HERE
    if @object_type='15' and @transaction_type='A'
    BEGIN
      if exists(select top 1 'A' from dln1 T0 where T0.BaseType != '17' and T0.DocEntry = @list_of_cols_val_tab_del)
      begin
         set @error = '-1'
         set @error_message = 'delivery without sales order is not allowed!'
      end
    END
    -- SELECTthe return VALUES
    SELECT @error, @error_message
    END
    Regards,
    J.

  • Creation of saleorder with reference to order using BAPI_SALESORDER_CREATE

    hello
    iam trying to create a sale order with respect to order BAPI_SALESORDER_CREATEFROMDAT2.
    the parameters i am passing is
    *Fill the header information for the order.
    wa_order_header_in-doc_type = Sales Doc type of order to be created.
    wa_order_header_in-sales_org = sales org.
    wa_order_header_in-distr_chan = distribution channel.
    wa_order_header_in-division = division.
    wa_order_header_in-ref_doc = order  number(This is the order i  refer to).
    wa_order_header_in-refdoc_cat = 'C' (c stands for order).
    *Fill the item level information for the order.
    wa_order_items_in-itm_number = item number.
    wa_order_items_in-material = material number.
    wa_order_items_in-ref_doc = order number(This is the order i refer to).
    wa_order_items_in-ref_doc_it = Item number of order i create.
    wa_order_items_in-ref_doc_ca = 'C'.
    APPEND wa_order_items_in TO i_order_items_in.
    *Fill the partner information for the order.
    wa_order_partners-partn_role = partner function.
    wa_order_partners-partn_numb = partner number.
    APPEND wa_order_partners TO i_order_partners.
    & likewise conditions structure
    i have done bapi_transaction_commit after bapi call.
    probelm which i am facing is , BAPI is creating a new sale order.. but it is not creating a order with reference order.
    thanks

    see this example as how to add text and multiple lines...
      loop at it_tab into wa_tab.
            record_no = sy-tabix.
            serial_no = wa_tab-ser_no.
    *       ORDER_TYPE =  WA_TAB-ORD_TYP.
            sales_office = wa_tab-sal_off.
            sales_group =  wa_tab-sal_grp.
            old_ref_no  = wa_tab-ref_shp_to_par.
            shipping_condition = wa_tab-ship_cond.
            perform sales_info using sales_office sales_group
    shipping_condition.
            condense shipping_condition.
            ship_cond = shipping_condition.
            on change of old_ref_no.
              refresh it_bapisdhead.
              refresh it_bapisdhead1x.
              refresh it_bapiparnr.
                 wa_bapisdhead-doc_type     = wa_tab-ord_typ.
                 wa_bapisdhead1x-doc_type   = 'X'.
                 wa_bapisdhead-sales_org    = '5088'.
                 wa_bapisdhead1x-sales_org  = 'X'.
                 wa_bapisdhead-distr_chan   = '01'.
                 wa_bapisdhead1x-distr_chan = 'X'.
                 wa_bapisdhead-division     = '00'.
                 wa_bapisdhead1x-division   = 'X'.
                 wa_bapisdhead-sales_grp    = sales_group.
                 wa_bapisdhead1x-sales_grp  = 'X'.
                 wa_bapisdhead-sales_off    = sales_office.
                 wa_bapisdhead1x-sales_off  = 'X'.
                 wa_bapisdhead-purch_no_c   = wa_tab-po_no.
                 wa_bapisdhead1x-purch_no_c = 'X'.
                 wa_bapisdhead-purch_date   = wa_tab-po_date.
                 wa_bapisdhead1x-purch_date = 'X'.
                 wa_bapisdhead-req_date_h   = wa_tab-req_del_date.
                 wa_bapisdhead1x-req_date_h = 'X'.
                 wa_bapisdhead-incoterms1   = 'EXW'.
                 wa_bapisdhead1x-incoterms1 = 'X'.
                 wa_bapisdhead-incoterms2   = wa_tab-inco_terms2.
                 wa_bapisdhead1x-incoterms2 = 'X'.
                 wa_bapisdhead-ship_cond    = ship_cond.
                 wa_bapisdhead1x-ship_cond  = 'X'.
                 wa_bapisdhead-ref_1        = wa_tab-ref_sld_to_par.
                 wa_bapisdhead1x-ref_1      = 'X'.
                 wa_bapisdhead-ref_1_s      = wa_tab-ref_shp_to_par.
                 wa_bapisdhead1x-ref_1_s    = 'X'.
                 append wa_bapisdhead to it_bapisdhead.
                 append wa_bapisdhead1x to it_bapisdhead1x.
                 wa_bapiparnr-unload_pt    = wa_tab-unload_pt.
                 wa_bapiparnr-partn_role   = 'AG'.
                 wa_bapiparnr-partn_numb   = wa_tab-sld_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
                 wa_bapiparnr-partn_role   = 'VE'.
                 wa_bapiparnr-partn_numb   = '777'.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
                 wa_bapiparnr-partn_role   = 'ZM'.
                 wa_bapiparnr-partn_numb   = '999'.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               if wa_tab-bill_to_par <> ' '.
                 wa_bapiparnr-partn_role   = 'RE'.
                 wa_bapiparnr-partn_numb   = wa_tab-bill_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               if wa_tab-payer <> ''.
                 wa_bapiparnr-partn_role   = 'RG'.
                 wa_bapiparnr-partn_numb   = wa_tab-payer.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               if wa_tab-ship_to_par <> ''.
                 wa_bapiparnr-partn_role   = 'WE'.
                 wa_bapiparnr-partn_numb   = wa_tab-ship_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               wa_bapisdtext-text_id   = 'Z113'.
               wa_bapisdtext-langu     = 'EN'.
               wa_bapisdtext-text_line = wa_tab-add_txt.
               append wa_bapisdtext to it_bapisdtext.
               clear wa_bapisdtext.
               if wa_tab-banker <> ''.
                 wa_bapisdtext-text_id   = 'ZKT1'.
                 wa_bapisdtext-langu     = 'EN'.
                 wa_bapisdtext-text_line = wa_tab-banker.
                 append wa_bapisdtext to it_bapisdtext.
                 clear wa_bapisdtext.
               endif.
               if wa_tab-fwd_age <> ''.
                 wa_bapisdtext-text_id   = 'ZKT1'.
                 wa_bapisdtext-langu     = 'EN'.
                 wa_bapisdtext-text_line = wa_tab-fwd_age.
                 append wa_bapisdtext to it_bapisdtext.
                 clear wa_bapisdtext.
               endif.
            endon.
    *                  ***** ITEM LEVEL DATA *****
                 wa_bapiitemin-material     = wa_tab-matno.
                 wa_bapiiteminx-material    = 'X'.
                 wa_bapiitemin-target_qty   = wa_tab-qty.
                 wa_bapiiteminx-target_qty  = 'X'.
                 wa_bapiitemin-plant        = wa_tab-plant.
                 wa_bapiiteminx-plant       = 'X'.
                 wa_bapiitemin-item_categ   = 'YAPS'.
                 wa_bapiiteminx-item_categ  = 'X'.
                 append wa_bapiitemin to it_bapiitemin.
                 append wa_bapiiteminx to it_bapiiteminx.
                 clear wa_bapiitemin.
                 clear wa_bapiiteminx.
    *             WA_BAPICOND-COND_TYPE      = 'PR00'.
    *             WA_BAPICONDX-COND_TYPE     = 'X'.
                 wa_bapicond-cond_value     = wa_tab-amt * wa_tab-qty.
                 wa_bapicondx-cond_value    = 'X'.
                 append wa_bapicond to it_bapicond.
                 append wa_bapicondx to it_bapicondx.
                 clear wa_bapicond.
                 clear wa_bapicondx.
            at end of ref_shp_to_par.
              call function 'BAPI_SALESORDER_CREATEFROMDAT2'
                exporting
    *             SALESDOCUMENTIN               =
                  order_header_in               = wa_bapisdhead
                  order_header_inx              = wa_bapisdhead1x
    *             SENDER                        =
    *             BINARY_RELATIONSHIPTYPE       =
    *             INT_NUMBER_ASSIGNMENT         =
    *             BEHAVE_WHEN_ERROR             =
    *             LOGIC_SWITCH                  =
    *             TESTRUN                       =
    *             CONVERT                       = ' '
    *           IMPORTING
    *             SALESDOCUMENT                 =
                tables
                  return                        = it_errmsg
                  order_items_in                = it_bapiitemin
                  order_items_inx               = it_bapiiteminx
                  order_partners                = it_bapiparnr
    *             ORDER_SCHEDULES_IN            =
    *             ORDER_SCHEDULES_INX           =
                  order_conditions_in           = it_bapicond
                  order_conditions_inx          = it_bapicondx
    *             ORDER_CFGS_REF                =
    *             ORDER_CFGS_INST               =
    *             ORDER_CFGS_PART_OF            =
    *             ORDER_CFGS_VALUE              =
    *             ORDER_CFGS_BLOB               =
    *             ORDER_CFGS_VK                 =
    *             ORDER_CFGS_REFINST            =
    *             ORDER_CCARD                   =
                  order_text                    = it_bapisdtext
    *             ORDER_KEYS                    =
    *             EXTENSIONIN                   =
    *             PARTNERADDRESSES              =
        read table it_errmsg into wa_errmsg with key type = 'E'
        binary search.
        if sy-subrc ne 0.
                 call function 'BAPI_TRANSACTION_COMMIT'
        endif.
    endloop.

  • Delivery with out sales order

    hi frnds
    In which scenario, we create the delivery without sales order? What is the Tcode for that?
    regards

    Sales Order created in non-sap/legacy system,  you want to deliver the same order in sap system . Inthis case this delivery is called "without order reference" as the Sales order created in non-sap/legacy system can not be considered as a reference document.
    Delivery type LO is used for this.
    Normally Item category is copied from the sales order to delivery document e.g.,Item category of the standard/normal item is TAN in sales order and it is copied to delivery doc., so in delivery doc also Item category is TAN.
    But, in LO type of delivery, there is no reference order, so Item category is determined in the delivery by ,
    Delivery type + Item category group + Item usage + Item category of higher level item (if exists).
    Regards

  • Problem in creation of File with random numbers

    hi all,
    i have written a function which generates random num,ber and stores in a text file.
    public static void main(String[ ] args) {
    int count=0;
    System.out.println("Generate Files");
    Random R=new Random();
    File F= new File("C:/e.cartesian");
    try{
    FileWriter fw=new FileWriter(F);
    int c=0;
    int rand=200;
    int l=0;
    for(int i=0;i<3;i++)
    {    for(int j=0;j<5;j++)
    {   for(int k=0;k<80;k++)
    c+=1;
    double d=R.nextDouble()*100;
    Double D=new Double(d);
    int dtoi=D.intValue();
    float itof=(dtoi/(float)100.0)+R.nextInt(200)+l;
    Float f=new Float(itof);
    fw.write(f.toString()+" ");
    System.out.println(f.toString());
    fw.write("\n");
    count+=1;
    l+=200;
    System.out.println("Count==>"+count);
    }catch(IOException e){}
    Problem is , if i run this code with condition k<79 or some other smaller value than 80 it doesnt save any value in text file.

    If you close the file after writing it works: fw.close();

  • Auto Creation of Delivery with PGI and Billing after creation of Sale Order

    Dear Experts,
    I am having one Req. like...After creation of sales order ..automatic Delivery and Billing should be done.
    Right now i m able to create automatic Delivery but PGI is not happening for that delivery.
    Is there any configuration I have to do ... or by any user exit we can get the solution.
    Can u please provide me solution for this.
    Regards,
    Sanket.

    Hello,
    yes, you can create the PGI Atomatically by BATCH JOB using the program nder the VL23 transaction code.
    Goto the Transaction code SM36 to create a job for the program  SAPMSSY0 which is the program for the AUTO PGI
    create a variant for the Delivery document types and sales organisation combinatioans and add this variant to the bath job created in SM36.
    Set the time of the Job to run after every 5 minutes, so once the job exected it will pcik all the Deliveries which are pending for the PGI.
    After the PGI done you can run SDBILLDL program to create the Billing for all the document which were cleared and due for Billing.
    Hope it is clear for yo, please revert if you need frther clarification .
    santosh

  • Problems in creation of activity with the folder relationship...

    Hi People,
    I need to create the activity adding the campaign in the RELATIONSHIP folder.
    To create the activity, I am using the BAPI BAPI_ACTIVITYCRM_CREATEMULTI, but there is the problem: I can´t add the campaign at the folder RELATIONSHIP of transaction CRMD_BUS2000126. Is it possible to create this?
    If not, Is there the other function that do this?
    Thanks,
    Regards.

    Hi Florin,
    At First, thank you for your help.
    Really, I don´t populate the table DOCUMENT_FLOW.
    Sorry, do you have an example to populate this table correctly? Or do you have any documentation about this BAPI?
    Thanks.
    Best Regards.
    Norberto Muramoto.

  • Problem in creation of target with the generated target message

    Hi,
    I’m doing File-to-File content conversion scenario.
    I’m able to see successful message in SXMB_MONI. Target message also created (Request Message Mapping) according the requirement.
    I’m using lastfieldOptional option in source content conversion.
    Adapters are running fine without content conversion failure..
    But the target file is not created.
    Could you pls anyone gives the reason or suggest any other things I need to verify.
    Thanks,
    Venu.

    Hi,
    do you see any errors in adapter <b>message</b> monitor:
    http://hostname:portnumber/MessagingSystem/monitor/monitor.jsp
    Regards,
    michal

  • Create Delivery with Reference to Order

    Hi!
    All,
    While Creating the Delivery (VL01n) with reference to Sales Order i have a error. Even i maintained Material correctly.
    'Storage location was deleted since material is not maintained correctly'.
    Plz give me suggestions, how to solve?
    Thanks and Ragards.
    raju.

    Hi raju,
    for this problem first u extend the material to that perticular storage location by using trasnaction <b>MM01</b> .
    then goto <b>vl01n</b> then enter that perticular storagelocation then do <b>pgi</b>.then i think ur problem will solve.
    reward points if it helps.
    thanks&regards
    veera

  • QA32: post stock (return delivery) with subcontract purchase order

    Hi all,
    When doing return delivery to vendor with QA32, the system returns error message :
    Enter Batch ,  M7 18 .
    It's a subcontract PO , and the sub item  has batch.
    So it seems i need to enter batch when doing return delivery. But i can't find any field to input the batch.
    Any way to solve this problem?
    Thanks.

    Do one thing just put *(Star) in batch field.
    or
    The batch is Either---> Valuation type of matrila if it is a split valuation
    or
    Batch is nothing but batch of produc/Material having BathMgt Active.
    MSC1N/2n/3n is t-code to view batch.
    but as per my knowledge it is Split valuation only can be seen in accounting view of material master ...such as HL,HM,HT(subcontracting)  etc
    Try this
    Sujit

  • Production Order creation Despite Delivery Block on Sales Order

    Hi All
    I have created a Z1-Delivery Block and assigned the block to a Sales order type.
    Now during the creation of the Sales order the Delivery block is assigned immediately the system creates  a planned order but no production order.However the business would still like the production order to be created.
    Is there a SAP standard way to allow this to happen or would I need to enhance via a USER EXIT.
    Thanks in Advance for your assistance.
    KA

    I'm not an expert, but I don't think delivery block actually has any influence on the production order. We have tried on purpose to use a delivery block to prevent the PO creation/release and had to develop a user exit for this purpose. The way it works in our system - planned order has a conversion indicator. Some standard program runs in background and converts the planned orders with this indicator into the production orders. If indicator is not set then PO is not created.
    Delivery block just prevents delivery from PGI, I don't think it even prevents the delivery creation (much to my surprise).

  • Delivery with reference to order

    Hi ,
    When i am creating a order related delivery it is allowing me to create new line items which are not present in the referenced sales order.Our requirement is that it should not allow us to create new line items in the delivery. Do we need to create new routines for that.
    Can anybody help me out.
    Regards,
    Smita

    Hi Smita
    I know this solution will work
    Have you tested this ?
    Because with my settings if you add up another line item in the deivery the system will give an error message?
    Have you read that error message?
    It says that for that extra item which is added in the delivery doc there is no item category defined in table  or t code 0184
    That means automatic determination of delivery item category is there for your delivery type and item category group combination in t code 0184 but still system will not pick that and
    if you maintain manual item category also in t code 0184 for that combination and if your user who adds the extra line item in the delivery is very smart he can manually input the delivery item category there and add that extra line item inspite if our controls in OVLK
    To avoid that only we are doing that
    We are putting double control
    Hope i am clear
    Regards
    Raja

Maybe you are looking for

  • Building a new Cube Vs Restricted Key figure in Query - Performance issue

    Hi, I have a requirement to create  a OPEX restricted key figure in Query. The problem is that the key figure should be restricted to about 30 GL Accounts and almost 300 Cost centers. I do not know if this might cause performance issue in the query.

  • Find script label on object inside of another object.

    I have a graphic inside of a box the graphic has a script label. I would like to reference it and its parent but. var myAsset=myDocument.pageItems.item("Logo"); does not work. I am wondering if using allPageItems might work however, I have not made a

  • Problem keeping a null number a number

    I'm reading data from a fixed length file and inserting the data into a database. Even though I have the File Adapter set to read the data as an int, if the data is null, it seemingly converts it to a String. I then get an error reading The object [ 

  • DefaultServlet?

    I've figured out how to manipulate the welcome-file-list tag in web.xml for tomcat to bring up the desired web page if someone hits my site without specifying a page (e.g. www.mysite.com will take them to www.mysite.com/index.html). But, my index pag

  • Type Tool Error

    Using Photoshop CC Type tool size and tracking options spaz out and automatically set themselves to maximum and get stuck.