Output determination using bapi create order

Hello,
I am using BAPI to create sales order. We have our 'Z' output determination which is connected to the new SD order.
It is also in NAST and has green light . But RSNAST00 did not worked.
This output determination writes a record to a table - but using the BAPI it did not happened.
Any one met this problem?
Thanks in advance
Sara

The green light only means that the output record was processed and that the processing program set the return code value to 0.  It does not mean that any particular part of the code was successful.  You should check for the success of the DB operation in your code.  You can switch the light to Red by using a '4' for the return code.  You should also add any necessary (custom) messages to the processing log using NAST_PROTOCOL_UPDATE.

Similar Messages

  • Output determination in SNC for order confirmation

    e want to use output determination to update SNC replenishment order when changes are done in R/3 sales order. We are not using new doc type. So no option left but to use 'Created by' as an option to trigger an output determination but it's not working as dezired. What could be best to use for output detrmination.
    thx

    Hi Vaibhav
    As far as i understood you have created
    Output type assignment to partner functions under spro-s&d-basic func-output control-maintain output deter for sales doc
    -assign output type to partner function-
    Output Type: XX
    Medimu : 6
    Funtion: $$
    Name :Created by
    Under  spro-s&d-basic func-Partner determination-setup partner determination-Set Up Partner Determination for Sales Document Header
    for each sales doc type a partner determination procedure is assgined under Partner Determination Procedure Assignment node
    Under Partner Functions, can you try using partner type as customer or logical system instead of user???
    and assign teh same partner type to ur Partner Determination Procedures under Partner Functions in Procedure node
    And try to check,
    Best Regards
    Vinod
    Edited by: Vinod Kumar Pedapati on Feb 14, 2011 1:19 PM

  • PO Output determination using Plant as a condition

    Hi All,
    I want to use PLANT (werks) as a condition in PO output determination. How do I do that?
    Basically, I want to be able to send ORDERS IDoc only when the Plant is a certain value. Where can I check the plant information before sending the output. I have tried to add plant in a condition table and then in the access sequence which is referenced in the output type. I have created a condition record for this condition table with PLANT also.
    But for some reason when I save the PO it does not create a output message (ORDERS IDoc). If I use any other PO header field (like purch org or purch gp) in the condition it works and generates the ORDERS IDoc.
    Any help would be greatly appreciated.
    Thanks,
    Sneha

    Thanks Narayan.
    It goes into the code for the requirement that I created to check for Plant and here is the code... But the structure KOMPBEA does not get populated with any values. Is there some other structure I can use to check the value for PLANT?
    FORM KOBED_979.
    *{   INSERT         TSTK941598                                        1
      IF KOMPBEA-WERKS = 'T300'.
        SY-SUBRC = 0.
      ELSE.
        SY-SUBRC = 4.
        EXIT.
      ENDIF.
    *}   INSERT
    ENDFORM.
    FORM KOBEV_979.
    *{   INSERT         TSTK941598                                        1
    PERFORM KOBED_979.
    *}   INSERT
    ENDFORM.
    Regards,
    Sneha

  • Output Determination using Requirement for Shipment

    I created a new output requirement, 909,  to handle two different formats for shipment bills of lading.  The new requirement prevents a NAST record for format B from being created if a NAST record for format A exists.  It works in the development environment and was transported to the QA environment.  It does not work in the QA environment.  It appears the requirement is not being check.  Output determination procedure, access sequence, and output types are the same.  The condition records created via VV73 are the same.  What could cause a requirement to not be used?  Thanks for your help.

    Needed to execute RV80HGEN.

  • SD: Output determination - Use of transmission medium = "Special function"?

    Hi,
    Would you tell me what is the specific use of transmission medium = "Special function" (table TNAPR-NACHA = 8) in the output determination for messages?
    Transaction V/30
    Thanks and regards,
    Eric

    Hi Guys - Transmission medium 8 - special function is a very strong functionality that SAP has provided. You can have a business document perform a specific function everytime it is created, obviously as an output to that document. I am not sure about FICO areas, but I have worked on it in SD.
    We do automatic shipment creation for deliveries. An output condition was created with access sequence of shipping cond and shipping point. Now whenever there will be a delivery created for this shipping point, it would trigger this output. The output is configured with special function transmission medium. The special function executes the program mentioned in the condition record set up. Through that program, we create a shipment that will have that delivery doc.
    So then everytime a delivery is created, we would have a shipment document created for it without having to schedule another background job....!!!!
    Likewise, you may accordingly utilize FICO documents and processing using special function output medium.
    Thanks
    Nikhil

  • SD output determination  using trasnmission medium sample mail

    Working on output determination for sales documents. I configured new ouput type z111 .path: img>sd>Basicfunctions>ouput control>Maintain ouput determination for sales docs> maintain output types> here I entered new ouput type z111 and I selected Transmission medium 6 for simple email and I entered program name and form. After that I finished remaining 3steps ie 1Assin output types to partner functions2)Maintain output determination procedure3)Assign ouput determination procedures.
    Here I have doubt
    How to test the email reached or not. I want clear steps how to proceed the next steps.
    Thanks
    vijay

    Hi,
    Create an order and then goto extras > Output > Header > edit.
    There ceate a line with your output type Z111, and medum.
    Then Come out of the saes order to first screen. Goto menu sales Order > issue outout to.
    Regards,
    Gagan

  • Disable print output when using bapi BAPI_GOODSMVT_CREATE

    Hello,
    I am using BAPI BAPI_GOODSMVT_CREATE to post material documents in our programs.
    I wish to prevent the print output of the documents created by the BAPI.
    Meaning - when the user post good movement using MIGO, there will be a printout of the movement, but if the movement is created using BAPI_GOODSMVT_CREATE, no output will be printed.
    I have tried sending blank values in fields VER_GR_GI_SLIP & VER_GR_GI_SLIPX in GOODSMVT_HEADER structure, but to no avail.
    Is there a way to disable printing ONLY when using the BAPI?
    Thank you very much.

    Hi,
    We cant restrict the print preview or print out of the material document. Once the condition record has maintianed for the material document, it ll applicable for all the material doc . It would be manual Gr or BAPI GR.
    In your case Print is coming automatically or user is taking the print !!
    Regards,
    Dhanush.

  • Updating a child of a BOM material using bapi sales order change

    Hi, Appreciate your thoughts on the following issue..
    We have a batch program which uses a bapi sales order change and updates the plant at the line items of the sales order. when this plant is assigned.. if any of the line item is a BOM item, it explodes and the data from the parent ( like payment terms, fixed val date ) should get copied to the child items same as the parent. This is happening fine if manual mode using va01 and va02 but when plant is updated using bapi the childs are not getting the data from the parent ( which comes through config )...
    Appreciate your inputs and any additional information to be passed to the bapi for the BOM materials to get the same config data as parent to the child when exploded...
    Thanks and will reward helpful answers..

    Hi, Appreciate your thoughts on the following issue..
    We have a batch program which uses a bapi sales order change and updates the plant at the line items of the sales order. when this plant is assigned.. if any of the line item is a BOM item, it explodes and the data from the parent ( like payment terms, fixed val date ) should get copied to the child items same as the parent. This is happening fine if manual mode using va01 and va02 but when plant is updated using bapi the childs are not getting the data from the parent ( which comes through config )...
    Appreciate your inputs and any additional information to be passed to the bapi for the BOM materials to get the same config data as parent to the child when exploded...
    Thanks and will reward helpful answers..

  • Creating service PO using BAPI - Created PO doesnot exist!!!

    Hi,
    I am creating service PO using   BAPI_PO_create. BAPI returns a PO number at the completion of excution. But when i check in ME23N Po does not exist. Niether does it Exist in EKKO/EKPO tables.
    also there is a structure BAPIESKLC in this  BAPI.  Though i know htis a link for account assignment i am not very clear on the fields. Specially  the percenatge field.
    Can someone guid me on This?
    Thanks on advance,
    Shwetha

    Please do check if there are any dumps in the system, after the commit work command.
    For this, you should check transaction code ST22.
    Any dumps ?
    Edited by: Lior Tabib on Jul 13, 2011 9:35 AM
    Edited by: Lior Tabib on Jul 13, 2011 9:35 AM

  • Which bom explosion/dependent req. used when creating order

    a material's production version ( MRP4 in material master) has 2 or more versions and all versions are valid. when creating a production order, which version will the system take?

    Dear,
    If you are creating the production order manually through CO01,if your order type dependent parameter for the order type in OPL8
    is having manual selection of prod version means the system will give the pop up to select the production version.
    If it's an automatic selection means the system by default will pick the first production version,if you are having more than 1
    production version for same lot size and validity.
    Check and revert.
    Regards
    S Mangalraj
    Edited by: Mangalraj.S on Aug 25, 2010 12:48 PM

  • Output determination for ordering address

    Hi
    In our business, more than one ordering address might be available for the same vendor. Therefore, we need to send Purchase Orders to different Ordering Address for the same vendor.Kindly help how to maintian the output determination for this.
    -Prabu

    Hi Prabhu
    Output determination
    What is output?
    Output is communication. When we create a transaction in sales & distribution, and save the transaction we may have to communicate to the concerned business partner about the transaction.
    Example;
    Customer--Purchase Order-VA01 (Create sales Order)- save the sales order- send the order confirmation to the customer
    Here the output is “ Order confirmation”
    This output is sent to business partner-Customer-Sold to Party
    Other Examples: Quotation, Invoice, Delivery note, Packing List
    Output determination happens through Condition Technique.
    Condition records are very important here. And these records contain answers to following questions.
    a)     What is the Output Type? Order confirmation or Invoice etc
    b)     Who is the recipient? A Sold-to-party or Payer etc.
    c)     What is the media? Take print out and send, or as email? Or Fax? Or EDI (Electronic data Interchange)
    d)     When output to be processed? Immediately when the transaction saved or scheduled to happen at particular Time etc
    e)     In which language the output to be prepared
    Customization:
    IMG—SD—Basic functions—Output Control
    Output Determination
    Output Determination using Condition technique
    Maintain Output Determination for Sales Documents
    Maintain output types
    SAP provides standard Output types for sales, shipping, transportation and billing
    Sales:
    AF00                    Inquiry
    AN00                    Quotation
    BA00                    Order
    RD03                    Cash sales invoice
    Each of this condition type has Repository data called Routines
    a)     Program---Program that reads data from tables (VBAK / many tables storing data pertaining header etc)
    b)     Form routine—Program used for creating layout
    c)     Form---Layout
    The Output type has an Access sequence
    Example: BA00 has access sequence 0010
    Access sequence uses sales document type as the field under table 7
    SAP provides standard Procedures, Copy the procedure and assign it to the Sales document Type
    Select maintain output determination procedure
    Position               V10000 (Order Confirmation)
    Select V10000 and Copy as
    ZV1000 Kirlosakr Order Confirmation
    Save
    Assign output determination Procedure
    Allocate Sales Document Header
    Position ZKOR
    Sales document Type               Procedure
    ZKOR                              ZV1000
    Save
    Now maintain Condition Records
    SAP menu—Logistics—Sales & Distribution—Master data-Output--sales document
    Create VV11
    Sales Doc=ZKOR
    Partner function=SP
    Media=1 Printout
    Date=4 immediately when saving transaction
    Lang=EN
    Now select Communication Tab
    Printer= A000 virtual Printer
    Save the Record
    Create an order and check the Order Confirmation
    Create VA01
    Save
    VA02- sales document—issue output to
    Select BA00 and select Print review to see the Output
    Outputs for shipping processes customization carried out under Logistics Execution
    IMG Menu—Logistics execution—Shipping—Basic shipping Functions-Output Control-Output determination---
    Maintain output determination for outbound deliveries
    Std Delivery outputs
    LD00                    Delivery document
    PL00                    Packing List
    Follow the same procedure, like in sales, Copy the std Procedure and assign to respective documents like Delivery document etc
    Output determination for Groups---Used for picking list generation
    Output determination for handling units—for packing
    Reward if useful to u

  • Output determination for sales order via email notification

    Dear All,
    Can some one provide  me  a  step by step configuration guide for Output determination via email notification.
    I would appreciate for your prompt response.
    Thanks
    ANGKS

    Hi there,
    For getting output Email or any media you have to do output determination. output determination is also carried by Condition techniques.
    Configuration path: (following are the steps)
    1) SPRO-> IMG-> Basic Functions-> Output Control-> Output Determination-> Output Determination using Condition Technique- >Output Determination for Sales Documents .
    2) Create Condition Table: select the field Sales Doc Type from field catalog & Save
    3) Maintain Access Sequence: 4-digits code & description. 
    4) Assign condition table to access sequence. Select Accesses line item and Go To Fields. Fields will display the fields we have selected in the condition table i.e. sales doc type. Maintain Output Types:BA00: Order Confirmation Select BA00 & Copy & Rename. Give the same 4-digit code as given to access sequence. You Can Maintain: Languages of Output Partners (to whom you need to send output) Print Program- print specification Sap Script- layout Assign Output Types to Partner Functions: go to new entries & assign your output type to partner functions. Maintain Output Determination Procedure: V10000 (Standard Procedure)here you select communication medium Email.
    Go to new entries and create your own 6-digit code with description. Select the procedure, go to Control Data. Here mention the output type i.e. condition type and leave requirement and manual only columns as blank. Determination Rule: link the 6-digit procedure code to doc types. Create Condition Records: VV11. Select document type and click on Communication. Mention partner function, medium, time. Output device: LP01, Spool request Name: SD_003, Suffix 2: order_confir & flag on print immediately. Once you press enter you will come across 2 key combinations: Sales organisation/ Customer Number: fill SO, Customer No, Partner Function Abbreviation, Partner to whom the output should be sent, time, medium, language. It contains: Sales Orgnisation, Customer, Partner Function (The abbreviated form of the name that identifies the Partner) (During output determination, the system determines the recipient of the output from the master record for the specified partner function. In this field, you can explicitly specify a recipient that will override the standard partner. There must also be a master record for the partner that is specified explicitly.), Medium, Time & Language.} Order Type: Document Type, Partner Function (abbreviation), Partner, Medium, Time & Language. Path For Output Determination For Sales Documents: Logistics -> Sales/distribution -> Master data -> Output -> Sales Document -> Create (t-code VV11) Path for Output Determination
    I hope this will help you.....
    Regards
    Deepak

  • Creation of outbound idoc using BAPI

    Hi,
    How can I create outbound IDOC using BAPI. If I go to BD64 and add the message type PREQCR,it gives the message that 'add this message type using BAPI'.I have added with the option ADD BABI.After that I dont know how to trigger?.Please give me the procedure how can i create outbound idoc using BAPI.
    Thanks,
    Ravi

    You will have to do the MESSAGE OUTPUT DETERMINATION to trigger the IDOC. Once you have done the config, internally it uses the method that you have configured.
    Look at NACE transaction to do the config, for message output determination of a purchase order.
    You can even do it in the config --
    Go to SPRO transaction. SAP Customizing Implementation Guide --> Materials Management --> Purchasing --> Messages -->
    regards,
    Ravi
    Message was edited by: Ravikumar Allampallam

  • Output determination process

    hi
    my issue is how an outputdetermination happens from sales to invoice, please help me out in this process

    For getting any output either by print, Fax, or any media you have to do output determination. output determination is also carried by Condition techniques. The detail procedure for Output Determination is :
    OutPut Determintaion :
    Output is a form of media from your business to one of its business partners or it can be within the organization. The output can be sent to any of the partners defined in the document. Outputs are usually in the form of Order Confirmations, Freight List, Delivery Notes, Invoices & Shipping Notifications. Determining form of output is output determination.
    Types of Output:
    Print Output, Fax, Telex, E-Mail & EDI (Electronic Data Interchange)
    --> PRINT OUTPUT:
    Configuration path: ( following are the steps)
    1) SPRO-> IMG-> Basic Functions-> Output Control-> Output Determination-> Output Determination using Condition Technique- >Output Determination for Sales Documents (or you can use output determination for billing documents depending on your requirement).
    2) Create Condition Table: select the field Sales Doc Type from field catalog & Save
    3) Maintain Access Sequence: 4-digits code & description.
    4) Assign condition table to access sequence. Select Accesses line item and Go To Fields. Fields will display the fields we have selected in the condition table i.e. sales doc type.
    Maintain Output Types:
    AF00: Inquiry
    AN00: Quotation
    BA00: Order Confirmation
    LD00: Delivery
    RD00: Invoice
    Select BA00 & Copy & Rename. Give the same 4-digit code as given to access sequence.
    You Can Maintain:
    Languages of Output
    Partners (to whom you need to send output)
    Print Program- print specification
    Sap Script- layout
    Assign Output Types to Partner Functions: go to new entries & assign your output type to partner functions.
    Maintain Output Determination Procedure: V10000 (Standard Procedure). Go to new entries and create your own 6-digit code with description. Select the procedure, go to Control Data. Here mention the output type i.e. condition type and leave requirement and manual only columns as blank.
    Determination Rule: link the 6-digit procedure code to doc types.
    Create Condition Records: VV11. Select document type and click on Communication. Mention partner function, medium, time. Output device: LP01, Spool request Name: SD_003, Suffix 2: order_confir & flag on print immediately.
    Once you press enter you will come across 2 key combinations:
    Sales organisation/ Customer Number: fill SO, Customer No, Partner Function Abbreviation, Partner to whom the output should be sent, time, medium, language.
    It contains: Sales Orgnisation, Customer, Partner Function (The abbreviated form of the name that identifies the Partner) (During output determination, the system determines the recipient of the output from the master record for the specified partner function. In this field, you can explicitly specify a recipient that will override the standard partner. There must also be a master record for the partner that is specified explicitly.), Medium, Time & Language.}
    Order Type: Document Type, Partner Function (abbreviation), Partner, Medium, Time & Language.
    Path For Output Determination For Sales Documents: Logistics -> Sales/distribution -> Master data -> Output -> Sales Document -> Create (t-code VV11)
    Path for Output Determination for Delivery Documents : Logistics -> Sales/distribution -> Master data -> Output -> shipping -> Create ( t-ode VV21)
    Path for Output Determination for Billing Documents : Logistics -> Sales/distribution -> Master data -> Output -> Billing Document -> Create ( t- code VV31)

  • Schedule Agreement Message Output Determination

    Hi Vishal
    Can you give me some more details for Configuring the Schedule Agreement Output Determination in the same manner for which you have given for a PO.
    My scenerio:
    Making a contract with a Vendor --> Maintain Source list --> Giving MRP indicator as 2 in the source list for that delivery --> Running MRP for that material --> Checking the Schedule lines are generated in the Stock/Req list --> Now the schedule lines should send message output to the vendor via EDI/Print.
    So give the answer relevant to above situation.
    points already awarded to the previous question.
    Thanks Vishal
    Regards
    Maruthi Ram

    Hi,
    PO Output Determination
    Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.
    GR Output Determination
    Instead of Purchase order use Scheduling agreement
    Output of GR
    After setting table, access sequence and output type for GR,run MB02 transaction, enter material document number. Double click one line item and select messages. Separate screen will be opened to configure outputs. Give the required fields and save the document. Now Run MB90, you can take printout. Output Type: WE03 or WE01 or WE02
    G.Ganesh Kumar

Maybe you are looking for

  • [SOLVED]Asus UX32VD, problems with ACPI and Intel video driver

    1. The bigger problem seems to be Intel video driver: When xf86-video-intel is installed, screen stays black after booting. By adding "nomodeset" to grub doesn't help. If I don't start gdm while booting, I can boot to command line with "nomodeset". 

  • HTTP Error:403

    Hi everyone I am trying to invoke a servlet from a jsp file,running in Jrun3.1.My jsp files are working fine but when the jsp forwards control to servlet,It gives error:403 forbidden. I'm using <jsp:forward page="web-inf/servlets/Demoservlet"/> Can a

  • Join two tables with the same information

    I have a registration database. It references two other tables. I accept registrations from Faculty and from Students, but their information is in two different tables. Both have fname and lname. If they have people_id filled in, I want the fname and

  • What is the cell definition

    Hi all, What is the cell definition option in query designer and what is the use of that ? Regards Kiran Kumar

  • How to query DDL locks on stored procedures/functions and packages?

    Hi! The subject says it all: How do I see existing DDL locks on stored procedures/functions and packages? While a procedure is executed it can't be deleted or replaced, so there has to be a DDL lock on it. The information does not seem to be in V$LOC