BAPI_SALESORDER_SIMULATE vs GN_INVOICE_CREATE

Hi
there is a SAP standard program SDNETPR0 that can be used to list Prices for Customer and range of Materials.
This uses function module GN_INVOICE_CREATE to bring back the Prices.
I was going to use that program as a base of a new Z program to extend some of the selection criteria.
Now I am wondering if in my new Report I should be using BAPI_SALESORDER_SIMULATE or GN_INVOICE_CREATE.
Both seem to do the same result.  But GN_INVOICE_CREATE is much much faster.
What is your experience on this.
Should I be using that or the BAPI...?

Hello,
When using GN_INVOICE_CREATE and if you are using the user exit to populate the custom fields in pricing communication structure, it has to be implemented in this function call as well.
However BAPI_SALESORDER_SIMULATE works out of the box.
Refer : SAP OSS: 536806

Similar Messages

  • Need help on BAPI_SALESORDER_SIMULATE.....very urgent

    Hi all,
    Is there a way to pass material pricing group for each item to BAPI_SALESORDER_SIMULATE?I could not find any field in items structure that could accept material pricing group?I need the pricing conditions and credit card out details based on material pricing group while simulating a sales order?If there is any other way to achieve the purpose please let me know....
    Thanks in advance...
    Santhoshi

    Hi Yoeri,
    Thanks for your reply.But the field PRC_GROUP1 is price group(KONDA) but not material pricing group(KONDM).You can observe the difference in VA03 transaction in Item Overview->Sales B tab.They are two different fields Material Pricing Group and Price Group.
    <b>Actual requirement is</b>:
    I need to simulate a sales order using BAPI_SALESORDER_SIMULATE, and retrieve the pricing details and credit card details. Now the problem is i am unable to find a field which holds material pricing group, due to which the pricing details and credit card ammount details that are returned are having incorrect values.
    I would appreciate if you could please help me out in solving this requirement.
    Thanks in advance
    Santhoshi

  • GN_INVOICE_CREATE - Creates Invoice but not visible (for Report RVAFSS00 )

    Hi,
    I am running GN_INVOICE_CREATE using SE37.  I have supplied the data and stepped through the code.  At the end of the execution - I get a successful message stating that the "Document 9000007 is saved".  If I go into VF03 and try to bring up Billing document 9000007 - I get the error message "Billing document 9000007 does not exist."
    I am not sure if i am supplying all of the input parameters correctly to make sure that the transaction is committed.  I cannot find enough documentation about GN_INVOICE_CREATE parameters.  The only information I did find for the input is under the Billing (SD-BIL)->Billing->The General Billing Interface->Function Module Parameter at  http://help.sap.com/saphelp_46c/helpdata/en/dd/5615db545a11d1a7020000e829fd11/content.htm and http://help.sap.com/saphelp_46c/helpdata/en/dd/5615b4545a11d1a7020000e829fd11/content.htm .  But that does not describes all of the input parameters like (VBSK_I, WITH_POSTING, CALLER_TYPE, I_WITHOUT_REFRESH, ID_NO_ENQUEUE, ID_KVORG, ID_NO_DIALOG, ID_NEW_CANCELLATION)      
    Do I need to create a wrapper RFC and call a BAPI_COMMIT_WORK as in BAPI_SALESORDER_CREATEFROMDAT2?  Or am i passing the parameters incorrectly:
    Here is what I am passing in SE 37:
    DELIVERY_DATE =                   08/14/2006
    INVOICE_DATE =                     08/14/2006
    INVOICE_TYPE =                     FX        
    PRICING_DATE                              
    VBSK_I                                    
    WITH_POSTING =                     A         
    CALLER_TYPE                               
    I_WITHOUT_REFRESH =                X         
    ID_NO_ENQUEUE                             
    ID_KVORG =                         06        
    ID_NO_DIALOG =                     X         
    ID_NEW_CANCELLATION                       
    The XKOMFKGN and XKOMFKKO tables I believe are correct based on the Communication Structure help files.
    Any help in figuring this out is appreciated.  Also, if you can let me know what the following field inputs are -VBSK_I, WITH_POSTING, CALLER_TYPE, I_WITHOUT_REFRESH, ID_NO_ENQUEUE, ID_KVORG, ID_NO_DIALOG, ID_NEW_CANCELLATION. 
    The reason I am going through this RFC is that we are looking at using Report RVAFSS00 to import a file that then runs the GN_INVOICE_CREATE to create billing documents with external transactions as defined in the General Billing interface.
    Regards,
    Jay

    Did not find the documentation for the fm any where, i think best place to look for is OSS.
    Parameter: ID_NO_DIALOG is for suppressing some shipping related screen and ID_NO_ENQUEUE is for locking sales order or delivery doc.
    By using where used list of the function module, some times it's possible to find out the use of other parameters.
    Hope this helps.
    Regards
    Sridhar

  • Delivery scheduling in BAPI_SALESORDER_SIMULATE

    Hi Experts,
    I have a problem with schedule lines in BAPI_SALESORDER_SIMULATE. If ordered quantity is larger than ATP I get a strange scheduling because all of the ordered quantity is postponed to a later date. For me it seems as partial delivery wouldn't be allowed. Is there any parameter in this bapi where I could allow partial delivery?
    (In VA01 for the same material/plant it's working properly.)
    Any ideas are warmly welcomed.
    Thanks and regards,
    Gabor

    Hi Tamás,
    What I exactly want to see is what scheduling is possible for the material. So if my understanding is correct I won't get this information from BAPI_SALESORDER_CREATEFROMDAT2. But anyway, thank you for your answers.
    I hope I'm not alone with this problem and someone can help.

  • Problem to get the availability of a product using BAPI_SALESORDER_SIMULATE

    Hi folks,
    I am trying to use BAPI_SALESORDER_SIMULATE to get the availability of a product but the BAPI does not send me the expected result :
    I am trying to get the availability of a "to be discontinued" product. The available quantity of this product is 592 unit.
    1/ Here is what I have in VA01 when I order a quantity of 1000 unit : [VA01|http://img689.imageshack.us/img689/4982/va012.jpg]
    --> only 592 units available : OK !
    2/ Here is what I have with BAPI_MATERIAL_AVAILABILITY when I order a quantity of 1000 unit : [Table WMDVEX|http://img707.imageshack.us/img707/9793/wmdvex2.jpg]
    --> only 592 units available : OK !
    3/ Here is what I have with BAPI_SALESORDER_SIMULATE when I order a quantity of 1000 unit : [TableORDER_SCHEDULE_EX|http://img101.imageshack.us/img101/830/orderscheduleex2.jpg]
    --> Nothing available : not OK !
    For information to run BAPI_SALESORDER_SIMULATE I am filling ORDER_HEADER_IN, ORDER_PARTNERS and ORDER_ITEMS_IN.
    Thanks in advance for your help.

    @Brad : If I fill ORDER_SCHEDULE_IN-REQ_QTY in place of ORDER_ITEMS_IN-REQ_QTY I receive an error : E-06070-Enter a quantity (I suppose ORDER_ITEMS_IN-REQ_QTY is mandatory).  Which field do you use to specify the schedule quantity ?
    For information here are the information I am using to run BAPI_SALESORDER_SIMULATE :
    ORDER_HEADER_IN
    DOC_TYPE
    SALES_ORG
    DISTR_CHAN
    DIVISION
    REQ_DATE_H
    PO_METHOD
    ORDER_ITEMS_IN
    ITM_NUMBER
    MATERIAL
    REQ_QTY
    SALES_UNIT
    ORDER_PARTNERS
    PARTN_ROLE
    PARTN_NUMB

  • URGENT - BAPI_SALESORDER_SIMULATE- FREE GOODS - ORDER_CONDITION_EX

    Hi Gurus,
    I am using standard Function module : BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
    I am trying to figure out the reason for the function module: BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to <b>simulate free goods</b> .
    <b>It is only not giving ORDER_CONDITION_EX for free goods materials.</b>
    BAPI simulates Bill of material, regular orders properly.
    Example : one material has on free good .
    Should give output in ORDER_CONDITION_EX
    It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
    However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
    What could be the reason. What is the correct input for the BAPI for it to give conditions in ORDER_CONDITION_EX for free goods.
    I know my data for input are correct as I can make a sale order with the same data.
    Please help me at the earliest to solve this problem.
    <b>BAPI’s reference : standard BAPI_SALESORDER_SIMULATE'</b>
    CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'
    EXPORTING
    ORDER_HEADER_IN = order_header_in
    CONVERT_PARVW_AUART = ' '
    DELAY = 0
    IMPORTING
    SALESDOCUMENT =
    ORDER_HEADER_EX =
    SOLD_TO_PARTY =
    SHIP_TO_PARTY =
    BILLING_PARTY =
    RETURN =
    ORDER_HEADER =
    TABLES
    ORDER_ITEMS_IN = order_items_in
    ORDER_PARTNERS = order_partners
    ORDER_SCHEDULE_IN = order_schedule_in
    ORDER_CONDITIONS_IN =
    ORDER_ITEMS_OUT =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CFGS_BLOB =
    ORDER_CCARD =
    ORDER_CCARD_EX =
    ORDER_SCHEDULE_EX =
    ORDER_CONDITION_EX = order_condition_ex
    ORDER_INCOMPLETE =
    MESSAGETABLE = messagetable
    EXTENSIONIN =
    PARTNERADDRESSES =
    WMDVSX =
    WMDVEX =
    AVAIL_OUT =
    ORDER_SCHEDULE_IN2 =
    ORDER_SCHEDULE_EX2 =
    ORDER_ITEMS_IN2 =
    ORDER_PARTNERS2
    Program being developed based on this BAPI
    selection-screen begin of block b1 with frame title text-001.
    parameters : p_kunnr like kna1-kunnr,
    p_matnr like vbap-matnr,
    p_vkorg like vbak-vkorg,
    p_vtweg like vbak-vtweg,
    p_spart like vbak-spart.
    selection-screen end of block b1.
    data: doctype like bapisdhead-doc_type value 'OR',
    itemno like bapiitemin-itm_number value '000010',
    quantity(13) type N value '0000000000001',
    partnertype like knvp-parvw value 'AG'.
    data :count type i.
    data : begin of order_condition_ex occurs 0.
    include structure bapicond.
    data: end of order_condition_ex.
    data: begin of order_header_in.
    include structure bapisdhead.
    data: end of order_header_in.
    data: begin of order_items_in occurs 1.
    include structure bapiitemin.
    data: end of order_items_in.
    data: begin of order_partners occurs 1.
    include structure bapipartnr.
    data:end of order_partners.
    data: begin of order_schedule_in occurs 1.
    include structure bapischdl.
    data:end of order_schedule_in.
    data: begin of messagetable occurs 0 .
    Include structure bapiret2.
    data: end of messagetable.
    order_header_in-doc_type = doctype.
    order_header_in-sales_org = p_vkorg.
    order_header_in-distr_chan = p_vtweg.
    order_header_in-division = p_spart.
    order_header_in-purch_date = sy-datum .
    order_header_in-req_date_h = sy-datum.
    order_items_in-itm_number = itemno.
    order_items_in-material = p_matnr.
    order_items_in-req_qty = quantity.
    append order_items_in.
    order_schedule_in-itm_number = itemno.
    order_schedule_in-req_qty = quantity.
    append order_schedule_in.
    order_schedule_in-req_date = sy-datum.
    order_partners-partn_role = partnertype.
    order_partners-partn_numb = p_kunnr.
    append order_partners.
    order_partners-itm_number = itemno.
    CALL FUNCTION 'Z_BAPI_SALESORDER_SIMULATE'
    EXPORTING
    ORDER_HEADER_IN = order_header_in
    CONVERT_PARVW_AUART = ' '
    DELAY = 0
    IMPORTING
    SALESDOCUMENT =
    ORDER_HEADER_EX =
    SOLD_TO_PARTY =
    SHIP_TO_PARTY =
    BILLING_PARTY =
    RETURN =
    ORDER_HEADER =
    TABLES
    ORDER_ITEMS_IN = order_items_in
    ORDER_PARTNERS = order_partners
    ORDER_SCHEDULE_IN = order_schedule_in
    ORDER_CONDITIONS_IN =
    ORDER_ITEMS_OUT =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CFGS_BLOB =
    ORDER_CCARD =
    ORDER_CCARD_EX =
    ORDER_SCHEDULE_EX =
    ORDER_CONDITION_EX = order_condition_ex
    ORDER_INCOMPLETE =
    MESSAGETABLE = messagetable
    EXTENSIONIN =
    PARTNERADDRESSES =
    WMDVSX =
    WMDVEX =
    Z_AVAIL_OUT =
    ORDER_SCHEDULE_IN2 =
    ORDER_SCHEDULE_EX2 =
    ORDER_ITEMS_IN2 =
    ORDER_PARTNERS2

    this is not solving it Ashish ,
    I am using a BAPI: Z_BAPI_SALESORDER_SIMULATE, this Bapi is similar to the BAPI_SALESORDER_SIMULATE. It has customizations that are similar to the customizations done for order in the SAP system at my organization.
    Checking CONDITIONS EX , for free goods
    I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
    I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
    It is only not giving ORDER_CONDITION_EX for free goods materials.
    BAPI simulates Bill of material, regular orders properly.
    Example : one material has on free good .
    Should give output in ORDER_CONDITION_EX
    It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
    However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
    I know my data for input are correct as I can make a sale order with the same data.
    In the Output in the MESSAGETABLE I get the message
    T ID NUM MESSAGE
    W V4 160 Minimum quantity 1 EA of free goods has not been reached
    Please help me with : What is the reason for this message? I am able to make a sale order with the same data
    I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE
    Please help me at the earliest to solve this problem
    BAPI INPUT :
    ORDER_HEADER_IN OR
    CONVERT_PARVW_AUART
    Tables Value
    ORDER_ITEMS_IN 1 Entry
    ORDER_PARTNERS 2 Entries
    ORDER_SCHEDULE_IN 1 Entry
    ORDER_CONDITIONS_IN 0 Entries
    ORDER_ITEMS_OUT 0 Entries
    ORDER_CFGS_REF 0 Entries
    ORDER_CFGS_INST 0 Entries
    ORDER_CFGS_PART_OF 0 Entries
    ORDER_CFGS_VALUE 0 Entries
    ORDER_CFGS_BLOB 0 Entries
    ORDER_CCARD 1 Entry
    ORDER_CCARD_EX 0 Entries
    ORDER_SCHEDULE_EX 0 Entries
    ORDER_CONDITION_EX 0 Entries
    ORDER_INCOMPLETE 0 Entries
    MESSAGETABLE 0 Entries
    EXTENSIONIN 0 Entries
    PARTNERADDRESSES 1 Entry
    WMDVSX 0 Entries
    WMDVEX 0 Entries
    Z_AVAIL_OUT 0 Entries
    ORDER_SCHEDULE_IN2 0 Entries
    ORDER_SCHEDULE_EX2 0 Entries
    ORDER_ITEMS_IN2 0 Entries
    ORDER_PARTNERS2 0 Entries
    BAPI Output is :
    Import parameters Value
    ORDER_HEADER_IN OR I have this filled in
    CONVERT_PARVW_AUART
    DELAY 0
    Export parameters Value
    SALESDOCUMENT
    ORDER_HEADER_EX OR
    SOLD_TO_PARTY
    SHIP_TO_PARTY
    BILLING_PARTY
    RETURN
    ORDER_HEADER OR sales area  00/00/0000 00/00/0000
    Tables Value
    ORDER_ITEMS_IN 1 Entry
    Result: 1 Entry
    ORDER_PARTNERS 2 Entries
    Result: 2 Entries
    ORDER_SCHEDULE_IN 1 Entry
    Result: 1 Entry
    ORDER_CONDITIONS_IN 0 Entries
    Result: 0 Entries
    ORDER_ITEMS_OUT 0 Entries
    Result: 2 Entries
    ORDER_CFGS_REF 0 Entries
    Result: 0 Entries
    ORDER_CFGS_INST 0 Entries
    Result: 0 Entries
    ORDER_CFGS_PART_OF 0 Entries
    Result: 0 Entries
    ORDER_CFGS_VALUE 0 Entries
    Result: 0 Entries
    ORDER_CFGS_BLOB 0 Entries
    Result: 0 Entries
    ORDER_CCARD 1 Entry
    Result: 1 Entry
    ORDER_CCARD_EX 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_EX 0 Entries
    Result: 2 Entries
    ORDER_CONDITION_EX 0 Entries
    Result: 0 Entries
    ORDER_INCOMPLETE 0 Entries
    Result: 0 Entries
    MESSAGETABLE 0 Entries
    Result: 1 Entry
    EXTENSIONIN 0 Entries
    Result: 0 Entries
    PARTNERADDRESSES 1 Entry
    Result: 3 Entries
    WMDVSX 0 Entries
    Result: 0 Entries
    WMDVEX 0 Entries
    Result: 0 Entries
    Z_AVAIL_OUT 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_IN2 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_EX2 0 Entries
    Result: 0 Entries
    ORDER_ITEMS_IN2 0 Entries
    Result: 1 Entry
    ORDER_PARTNERS2 0 Entries
    Result: 2 Entries

  • BAPI_SALESORDER_SIMULATE-  FREE GOODS - ORDER_CONDITION_EX

    Hi Gurus,
    I am using standard Function module : BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
    I am trying to figure out the reason for the function module:  BAPI_SALESORDER_SIMULATE  not giving values in CONDITIONS EX when I use it to <b>simulate free goods</b> .
    It is only not giving ORDER_CONDITION_EX for <b>free goods</b> materials.
    BAPI   simulates Bill of material, regular orders properly.
    Example : one material has on free good .
    Should give output in ORDER_CONDITION_EX
    It is giving an output in ORDER_ITEMS_OUT  - two  materials line item 10 , 15 .
    However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
    What could be the reason. What is the correct input for the BAPI for it to give conditions in ORDER_CONDITION_EX  for free goods.
    I know my data  for input are correct as I can make a sale order with the same data.
    Please help me at the earliest to solve this problem.
    <u>BAPI’s  reference : standard  BAPI_SALESORDER_SIMULATE'</u>
    CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'
    EXPORTING
    ORDER_HEADER_IN = order_header_in
    CONVERT_PARVW_AUART = ' '
    DELAY = 0
    IMPORTING
    SALESDOCUMENT =
    ORDER_HEADER_EX =
    SOLD_TO_PARTY =
    SHIP_TO_PARTY =
    BILLING_PARTY =
    RETURN =
    ORDER_HEADER =
    TABLES
    ORDER_ITEMS_IN = order_items_in
    ORDER_PARTNERS = order_partners
    ORDER_SCHEDULE_IN = order_schedule_in
    ORDER_CONDITIONS_IN =
    ORDER_ITEMS_OUT =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CFGS_BLOB =
    ORDER_CCARD =
    ORDER_CCARD_EX =
    ORDER_SCHEDULE_EX =
    ORDER_CONDITION_EX = order_condition_ex
    ORDER_INCOMPLETE =
    MESSAGETABLE = messagetable
    EXTENSIONIN =
    PARTNERADDRESSES =
    WMDVSX =
    WMDVEX =
    AVAIL_OUT =
    ORDER_SCHEDULE_IN2 =
    ORDER_SCHEDULE_EX2 =
    ORDER_ITEMS_IN2 =
    ORDER_PARTNERS2
    <u>Program being developed based on this BAPI</u>
    selection-screen begin of block b1 with frame title text-001.
    parameters : p_kunnr like kna1-kunnr,
    p_matnr like vbap-matnr,
    p_vkorg like vbak-vkorg,
    p_vtweg like vbak-vtweg,
    p_spart like vbak-spart.
    selection-screen end of block b1.
    data: doctype like bapisdhead-doc_type value 'OR',
    itemno like bapiitemin-itm_number value '000010',
    quantity(13) type N value '0000000000001',
    partnertype like knvp-parvw value 'AG'.
    data :count type i.
    data : begin of order_condition_ex occurs 0.
    include structure bapicond.
    data: end of order_condition_ex.
    data: begin of order_header_in.
    include structure bapisdhead.
    data: end of order_header_in.
    data: begin of order_items_in occurs 1.
    include structure bapiitemin.
    data: end of order_items_in.
    data: begin of order_partners occurs 1.
    include structure bapipartnr.
    data:end of order_partners.
    data: begin of order_schedule_in occurs 1.
    include structure bapischdl.
    data:end of order_schedule_in.
    data: begin of messagetable occurs 0 .
    Include structure bapiret2.
    data: end of messagetable.
    order_header_in-doc_type = doctype.
    order_header_in-sales_org = p_vkorg.
    order_header_in-distr_chan = p_vtweg.
    order_header_in-division = p_spart.
    order_header_in-purch_date = sy-datum .
    order_header_in-req_date_h = sy-datum.
    order_items_in-itm_number = itemno.
    order_items_in-material = p_matnr.
    order_items_in-req_qty = quantity.
    append order_items_in.
    order_schedule_in-itm_number = itemno.
    order_schedule_in-req_qty = quantity.
    append order_schedule_in.
    order_schedule_in-req_date = sy-datum.
    order_partners-partn_role = partnertype.
    order_partners-partn_numb = p_kunnr.
    append order_partners.
    order_partners-itm_number = itemno.
    CALL FUNCTION 'Z_BAPI_SALESORDER_SIMULATE'
    EXPORTING
    ORDER_HEADER_IN = order_header_in
    CONVERT_PARVW_AUART = ' '
    DELAY = 0
    IMPORTING
    SALESDOCUMENT =
    ORDER_HEADER_EX =
    SOLD_TO_PARTY =
    SHIP_TO_PARTY =
    BILLING_PARTY =
    RETURN =
    ORDER_HEADER =
    TABLES
    ORDER_ITEMS_IN = order_items_in
    ORDER_PARTNERS = order_partners
    ORDER_SCHEDULE_IN = order_schedule_in
    ORDER_CONDITIONS_IN =
    ORDER_ITEMS_OUT =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CFGS_BLOB =
    ORDER_CCARD =
    ORDER_CCARD_EX =
    ORDER_SCHEDULE_EX =
    ORDER_CONDITION_EX = order_condition_ex
    ORDER_INCOMPLETE =
    MESSAGETABLE = messagetable
    EXTENSIONIN =
    PARTNERADDRESSES =
    WMDVSX =
    WMDVEX =
    Z_AVAIL_OUT =
    ORDER_SCHEDULE_IN2 =
    ORDER_SCHEDULE_EX2 =
    ORDER_ITEMS_IN2 =
    ORDER_PARTNERS2

    Hi Eswar  and friends,
    I am using a BAPI :  Z_BAPI_SALESORDER_SIMULATE  , this Bapi is similar to the   BAPI_SALESORDER_SIMULATE . It has customizations that are similar to the customizations done for order  in the SAP system at my organization.
    <b>
    In the Output in the MESSAGETABLE I get the message
    <b>                                                                               
    T      ID                   NUM           MESSAGE                                                                               
    W     V4                   160             Minimum quantity 1 EA of free goods has not been reached                                                                               
    </b>                                                                               
    Please help me with : What is the reason for this message?</b> I am able to make a sale order with the same data      
    <b>I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI:  Z_BAPI_SALESORDER_SIMULATE </b>
    Please help me at the earliest to solve this problem
    BAPI INPUT :                                                                               
    ORDER_HEADER_IN                              OR          
    CONVERT_PARVW_AUART                                                                               
    Tables                                    Value                                                                               
    ORDER_ITEMS_IN                          1 Entry                                        
    ORDER_PARTNERS                          2 Entries                                      
    ORDER_SCHEDULE_IN                       1 Entry                                        
    ORDER_CONDITIONS_IN                     0 Entries                                      
    ORDER_ITEMS_OUT                         0 Entries                                      
    ORDER_CFGS_REF                          0 Entries                                      
    ORDER_CFGS_INST                         0 Entries                                      
    ORDER_CFGS_PART_OF                 0 Entries                                      
    ORDER_CFGS_VALUE                   0 Entries                                      
    ORDER_CFGS_BLOB                    0 Entries                                      
    ORDER_CCARD                             1 Entry                                        
    ORDER_CCARD_EX                     0 Entries                                      
    ORDER_SCHEDULE_EX                  0 Entries                                      
    ORDER_CONDITION_EX                 0 Entries                                      
    ORDER_INCOMPLETE                   0 Entries                                      
    MESSAGETABLE                       0 Entries                                      
    EXTENSIONIN                        0 Entries                                      
    PARTNERADDRESSES                   1 Entry                                        
    WMDVSX                             0 Entries                                      
    WMDVEX                             0 Entries                                      
    Z_AVAIL_OUT                        0 Entries                                      
    ORDER_SCHEDULE_IN2                 0 Entries                                      
    ORDER_SCHEDULE_EX2                 0 Entries                                      
    ORDER_ITEMS_IN2                    0 Entries                                      
    ORDER_PARTNERS2                    0 Entries                                      
    BAPI Output is :
          Import parameters                   Value                                                                               
    ORDER_HEADER_IN                  OR    I have this filled in                                                                               
    CONVERT_PARVW_AUART                                                                               
    DELAY                               0                                                                               
    Export parameters                   Value                                                                               
    SALESDOCUMENT                                                                               
    ORDER_HEADER_EX                                          OR           
          SOLD_TO_PARTY                            
          SHIP_TO_PARTY                            
          BILLING_PARTY                            
          RETURN                                                                               
    ORDER_HEADER                                                                                OR            SO500750       00/00/0000 00/00/0000                                                        
          Tables                              Value                                                                               
    ORDER_ITEMS_IN                                 1 Entry                                                                               
    Result:                       1 Entry                                                                               
    ORDER_PARTNERS                                 2 Entries                                                                               
    Result:                       2 Entries                                                                               
    ORDER_SCHEDULE_IN                              1 Entry                                                                               
    Result:                       1 Entry                                                                               
    ORDER_CONDITIONS_IN                            0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_ITEMS_OUT                                0 Entries                                                                               
    Result:                       2 Entries                                                                               
    ORDER_CFGS_REF                                 0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_CFGS_INST                                0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_CFGS_PART_OF                             0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_CFGS_VALUE                               0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_CFGS_BLOB                                0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_CCARD                                    1 Entry                                                                               
    Result:                       1 Entry                                                                               
    ORDER_CCARD_EX                                 0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_SCHEDULE_EX                              0 Entries                                                                               
    Result:                       2 Entries                                                                               
    ORDER_CONDITION_EX                             0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_INCOMPLETE                               0 Entries                                                                               
    Result:                       0 Entries                                                                               
    MESSAGETABLE                                   0 Entries                                                                               
    Result:                       1 Entry                                                                               
    EXTENSIONIN                                    0 Entries                                                                               
    Result:                       0 Entries                                                                               
    PARTNERADDRESSES                               1 Entry                                                                               
    Result:                       3 Entries                                                                               
    WMDVSX                                         0 Entries                                                                               
    Result:                       0 Entries                                                                               
    WMDVEX                                         0 Entries                                                                               
    Result:                       0 Entries                                                                               
    Z_AVAIL_OUT                                    0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_SCHEDULE_IN2                             0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_SCHEDULE_EX2                             0 Entries                                                                               
    Result:                       0 Entries                                                                               
    ORDER_ITEMS_IN2                                0 Entries                                                                               
    Result:                       1 Entry                                                                               
    ORDER_PARTNERS2                                0 Entries                                                                               
    Result:                       2 Entries                                                                               
    <b>Additional Note  :</b>
    <b>Checking  CONDITIONS EX , for free goods</b>
    I am using  Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
    I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
    It is only not giving ORDER_CONDITION_EX for free goods materials.
    BAPI simulates Bill of material, regular orders properly.
    Example : one material has on free good .
    Should give output in ORDER_CONDITION_EX
    It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
    However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
    I<b> know my data for input are correct as I can make a sale order with the same data.</b>

  • BAPI_SALESORDER_SIMULATE can be used in case of Sales Order Change?

    Hi All,
    I'm using FM 'BAPI_SALESORDER_CHANGE' to update sales order.
    It's working fine even multiful item (delete, add, changing item).
    But I need to give simulated information to SAP portal before changing Sales order.
    This 'BAPI_SALESORDER_SIMULATE' FM looks like for creating new Sales Order.
    Is there any other simulation BAPI FM for Sales order change?
    Thanks.

    Hi,
    You can use
    BAPI_ORDER_CHANGE_STATUS_GET   Change status for order                                                  
    BAPI_SALESORDER_CHANGE         Sales Order: Change Sales Order                                          
    Thanks
    Sarada

  • Mandatory fields for GN_INVOICE_CREATE

    Hi,
    My requirement is for a given material say 'X', I want to know its netprice.
    I mean when I create a sales order with material 'X', I get its netprice.
    I want to know the netprice of this material without creating  a sales order itself.
    I gathered the information that fn. module GN_INVOICE_CREATE suits my requirement.
    But, I dont know the minimum data we should pass to the function module for getting back the 'net price' of the given material.
    Eagerly waiting for your replies,
    Shivaa......

    Hi Siva,
    Go through the following example.You can understand what vlues are mandatory to give.
      CALL FUNCTION 'GN_INVOICE_CREATE'
        EXPORTING
        DELIVERY_DATE             = 0
        INVOICE_DATE              = 0
        INVOICE_TYPE              = '    '
        PRICING_DATE              = 0
          VBSK_I                    = XVBSK
          WITH_POSTING              = 'B'
        CALLER_TYPE               = ' '
        I_WITHOUT_REFRESH         = ' '
        ID_NO_ENQUEUE             = ' '
        ID_KVORG                  = ' '
          ID_NO_DIALOG              = 'X'
        ID_NEW_CANCELLATION       = ' '
        FILTER                    = FILTER
        IMPORTING
          VBSK_E                    = XVBSK
        TABLES
          XKOMFK                    = XKOMFK
          XKOMFKGN                  = XKOMFKGN
          XKOMFKKO                  = XKOMFKKO
        XKOMFKTX                  =
          XKOMV                     = XKOMV
          XTHEAD                    = XTHEAD
          XVBFS                     = YVBFS
          XVBPA                     = XVBPA
          XVBRK                     = XVBRK
          XVBRP                     = XVBRP
          XVBSS                     = YVBSS
        XKOMFKZM                  =
        SUCCESS_DOC_OUT           =
    by
    Prasd gvk.

  • Early help : BAPI_SALESORDER_SIMULATE- FREE GOODS - Warning Message

    Hi Gurus,
    I am using a BAPI : Z_BAPI_SALESORDER_SIMULATE , this Bapi is similar to the BAPI_SALESORDER_SIMULATE . It has customizations that are similar to the customizations done for order in the SAP system at my organization.
    In the Output in the MESSAGETABLE I get the message
    <b>
    T ID NUM MESSAGE
    W V4 160 Minimum quantity 1 EA of free goods has not been reached
    Please help me with : What is the reason for this message? I am able to make a sale order with the same data
    I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE</b>
    Please help me at the earliest to solve this problem
    BAPI INPUT :
    ORDER_HEADER_IN OR
    CONVERT_PARVW_AUART
    Tables Value
    ORDER_ITEMS_IN 1 Entry
    ORDER_PARTNERS 2 Entries
    ORDER_SCHEDULE_IN 1 Entry
    ORDER_CONDITIONS_IN 0 Entries
    ORDER_ITEMS_OUT 0 Entries
    ORDER_CFGS_REF 0 Entries
    ORDER_CFGS_INST 0 Entries
    ORDER_CFGS_PART_OF 0 Entries
    ORDER_CFGS_VALUE 0 Entries
    ORDER_CFGS_BLOB 0 Entries
    ORDER_CCARD 1 Entry
    ORDER_CCARD_EX 0 Entries
    ORDER_SCHEDULE_EX 0 Entries
    ORDER_CONDITION_EX 0 Entries
    ORDER_INCOMPLETE 0 Entries
    MESSAGETABLE 0 Entries
    EXTENSIONIN 0 Entries
    PARTNERADDRESSES 1 Entry
    WMDVSX 0 Entries
    WMDVEX 0 Entries
    Z_AVAIL_OUT 0 Entries
    ORDER_SCHEDULE_IN2 0 Entries
    ORDER_SCHEDULE_EX2 0 Entries
    ORDER_ITEMS_IN2 0 Entries
    ORDER_PARTNERS2 0 Entries
    BAPI Output is :
    Import parameters Value
    ORDER_HEADER_IN OR I have this filled in
    CONVERT_PARVW_AUART
    DELAY 0
    Export parameters Value
    SALESDOCUMENT
    ORDER_HEADER_EX OR
    SOLD_TO_PARTY
    SHIP_TO_PARTY
    BILLING_PARTY
    RETURN
    ORDER_HEADER OR SO500750 00/00/0000 00/00/0000
    Tables Value
    ORDER_ITEMS_IN 1 Entry
    Result: 1 Entry
    ORDER_PARTNERS 2 Entries
    Result: 2 Entries
    ORDER_SCHEDULE_IN 1 Entry
    Result: 1 Entry
    ORDER_CONDITIONS_IN 0 Entries
    Result: 0 Entries
    ORDER_ITEMS_OUT 0 Entries
    Result: 2 Entries
    ORDER_CFGS_REF 0 Entries
    Result: 0 Entries
    ORDER_CFGS_INST 0 Entries
    Result: 0 Entries
    ORDER_CFGS_PART_OF 0 Entries
    Result: 0 Entries
    ORDER_CFGS_VALUE 0 Entries
    Result: 0 Entries
    ORDER_CFGS_BLOB 0 Entries
    Result: 0 Entries
    ORDER_CCARD 1 Entry
    Result: 1 Entry
    ORDER_CCARD_EX 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_EX 0 Entries
    Result: 2 Entries
    ORDER_CONDITION_EX 0 Entries
    Result: 0 Entries
    ORDER_INCOMPLETE 0 Entries
    Result: 0 Entries
    MESSAGETABLE 0 Entries
    Result: 1 Entry
    EXTENSIONIN 0 Entries
    Result: 0 Entries
    PARTNERADDRESSES 1 Entry
    Result: 3 Entries
    WMDVSX 0 Entries
    Result: 0 Entries
    WMDVEX 0 Entries
    Result: 0 Entries
    Z_AVAIL_OUT 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_IN2 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_EX2 0 Entries
    Result: 0 Entries
    ORDER_ITEMS_IN2 0 Entries
    Result: 1 Entry
    ORDER_PARTNERS2 0 Entries
    Result: 2 Entries
    Additional Note :
    Checking CONDITIONS EX , for free goods
    I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
    I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
    It is only not giving ORDER_CONDITION_EX for free goods materials.
    BAPI simulates Bill of material, regular orders properly.
    Example : one material has on free good .
    Should give output in ORDER_CONDITION_EX
    It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
    However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
    I know my data for input are correct as I can make a sale order with the same data.

    AMit ,
    as per my knowledge , this message is coming from SPRO
    <b>T ID NUM MESSAGE
    W V4 160 Minimum quantity 1 EA of free goods has not been reached
    Please help me with : What is the reason for this message? I am able to make a sale order with the same data</b>
    <b>1.First try in Va01 with the same Data then check ? If u get the same message then problem with ur input data</b>
    regards
    Prabhu

  • Early help : BAPI_SALESORDER_SIMULATE- FREE GOODS - ORDER_CONDITION_EX

    Hi Gurus,
    I am using a BAPI : Z_BAPI_SALESORDER_SIMULATE , this Bapi is similar to the BAPI_SALESORDER_SIMULATE . It has customizations that are similar to the customizations done for order in the SAP system at my organization.
    In the Output in the MESSAGETABLE I get the message
    T ID NUM MESSAGE
    W V4 160 Minimum quantity 1 EA of free goods has not been reached
    Please help me with : What is the reason for this message? I am able to make a sale order with the same data
    I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE
    Please help me at the earliest to solve this problem
    BAPI INPUT :
    ORDER_HEADER_IN OR
    CONVERT_PARVW_AUART
    Tables Value
    ORDER_ITEMS_IN 1 Entry
    ORDER_PARTNERS 2 Entries
    ORDER_SCHEDULE_IN 1 Entry
    ORDER_CONDITIONS_IN 0 Entries
    ORDER_ITEMS_OUT 0 Entries
    ORDER_CFGS_REF 0 Entries
    ORDER_CFGS_INST 0 Entries
    ORDER_CFGS_PART_OF 0 Entries
    ORDER_CFGS_VALUE 0 Entries
    ORDER_CFGS_BLOB 0 Entries
    ORDER_CCARD 1 Entry
    ORDER_CCARD_EX 0 Entries
    ORDER_SCHEDULE_EX 0 Entries
    ORDER_CONDITION_EX 0 Entries
    ORDER_INCOMPLETE 0 Entries
    MESSAGETABLE 0 Entries
    EXTENSIONIN 0 Entries
    PARTNERADDRESSES 1 Entry
    WMDVSX 0 Entries
    WMDVEX 0 Entries
    Z_AVAIL_OUT 0 Entries
    ORDER_SCHEDULE_IN2 0 Entries
    ORDER_SCHEDULE_EX2 0 Entries
    ORDER_ITEMS_IN2 0 Entries
    ORDER_PARTNERS2 0 Entries
    BAPI Output is :
    Import parameters Value
    ORDER_HEADER_IN OR I have this filled in
    CONVERT_PARVW_AUART
    DELAY 0
    Export parameters Value
    SALESDOCUMENT
    ORDER_HEADER_EX OR
    SOLD_TO_PARTY
    SHIP_TO_PARTY
    BILLING_PARTY
    RETURN
    ORDER_HEADER OR SO500750 00/00/0000 00/00/0000
    Tables Value
    ORDER_ITEMS_IN 1 Entry
    Result: 1 Entry
    ORDER_PARTNERS 2 Entries
    Result: 2 Entries
    ORDER_SCHEDULE_IN 1 Entry
    Result: 1 Entry
    ORDER_CONDITIONS_IN 0 Entries
    Result: 0 Entries
    ORDER_ITEMS_OUT 0 Entries
    Result: 2 Entries
    ORDER_CFGS_REF 0 Entries
    Result: 0 Entries
    ORDER_CFGS_INST 0 Entries
    Result: 0 Entries
    ORDER_CFGS_PART_OF 0 Entries
    Result: 0 Entries
    ORDER_CFGS_VALUE 0 Entries
    Result: 0 Entries
    ORDER_CFGS_BLOB 0 Entries
    Result: 0 Entries
    ORDER_CCARD 1 Entry
    Result: 1 Entry
    ORDER_CCARD_EX 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_EX 0 Entries
    Result: 2 Entries
    ORDER_CONDITION_EX 0 Entries
    Result: 0 Entries
    ORDER_INCOMPLETE 0 Entries
    Result: 0 Entries
    MESSAGETABLE 0 Entries
    Result: 1 Entry
    EXTENSIONIN 0 Entries
    Result: 0 Entries
    PARTNERADDRESSES 1 Entry
    Result: 3 Entries
    WMDVSX 0 Entries
    Result: 0 Entries
    WMDVEX 0 Entries
    Result: 0 Entries
    Z_AVAIL_OUT 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_IN2 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_EX2 0 Entries
    Result: 0 Entries
    ORDER_ITEMS_IN2 0 Entries
    Result: 1 Entry
    ORDER_PARTNERS2 0 Entries
    Result: 2 Entries
    Additional Note :
    Checking CONDITIONS EX , for free goods
    I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
    I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
    It is only not giving ORDER_CONDITION_EX for free goods materials.
    BAPI simulates Bill of material, regular orders properly.
    Example : one material has on free good .
    Should give output in ORDER_CONDITION_EX
    It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
    However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
    I know my data for input are correct as I can make a sale order with the same data.

    hello,
    I am using a BAPI: Z_BAPI_SALESORDER_SIMULATE, this Bapi is similar to the BAPI_SALESORDER_SIMULATE. It has customizations that are similar to the customizations done for order in the SAP system at my organization.
    Checking CONDITIONS EX , for free goods
    I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.
    I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .
    It is only not giving ORDER_CONDITION_EX for free goods materials.
    BAPI simulates Bill of material, regular orders properly.
    Example : one material has on free good .
    Should give output in ORDER_CONDITION_EX
    It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .
    However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .
    I<b> know my data for input are correct as I can make a sale order with the same data.
    In the Output in the MESSAGETABLE I get the message
    T ID NUM MESSAGE
    W V4 160 Minimum quantity 1 EA of free goods has not been reached
    Please help me with : What is the reason for this message? I am able to make a sale order with the same data</b>
    I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE
    Please help me at the earliest to solve this problem
    BAPI INPUT :
    ORDER_HEADER_IN OR
    CONVERT_PARVW_AUART
    Tables Value
    ORDER_ITEMS_IN 1 Entry
    ORDER_PARTNERS 2 Entries
    ORDER_SCHEDULE_IN 1 Entry
    ORDER_CONDITIONS_IN 0 Entries
    ORDER_ITEMS_OUT 0 Entries
    ORDER_CFGS_REF 0 Entries
    ORDER_CFGS_INST 0 Entries
    ORDER_CFGS_PART_OF 0 Entries
    ORDER_CFGS_VALUE 0 Entries
    ORDER_CFGS_BLOB 0 Entries
    ORDER_CCARD 1 Entry
    ORDER_CCARD_EX 0 Entries
    ORDER_SCHEDULE_EX 0 Entries
    ORDER_CONDITION_EX 0 Entries
    ORDER_INCOMPLETE 0 Entries
    MESSAGETABLE 0 Entries
    EXTENSIONIN 0 Entries
    PARTNERADDRESSES 1 Entry
    WMDVSX 0 Entries
    WMDVEX 0 Entries
    Z_AVAIL_OUT 0 Entries
    ORDER_SCHEDULE_IN2 0 Entries
    ORDER_SCHEDULE_EX2 0 Entries
    ORDER_ITEMS_IN2 0 Entries
    ORDER_PARTNERS2 0 Entries
    BAPI Output is :
    Import parameters Value
    ORDER_HEADER_IN OR I have this filled in
    CONVERT_PARVW_AUART
    DELAY 0
    Export parameters Value
    SALESDOCUMENT
    ORDER_HEADER_EX OR
    SOLD_TO_PARTY
    SHIP_TO_PARTY
    BILLING_PARTY
    RETURN
    ORDER_HEADER OR sales area  00/00/0000 00/00/0000
    Tables Value
    ORDER_ITEMS_IN 1 Entry
    Result: 1 Entry
    ORDER_PARTNERS 2 Entries
    Result: 2 Entries
    ORDER_SCHEDULE_IN 1 Entry
    Result: 1 Entry
    ORDER_CONDITIONS_IN 0 Entries
    Result: 0 Entries
    ORDER_ITEMS_OUT 0 Entries
    Result: 2 Entries
    ORDER_CFGS_REF 0 Entries
    Result: 0 Entries
    ORDER_CFGS_INST 0 Entries
    Result: 0 Entries
    ORDER_CFGS_PART_OF 0 Entries
    Result: 0 Entries
    ORDER_CFGS_VALUE 0 Entries
    Result: 0 Entries
    ORDER_CFGS_BLOB 0 Entries
    Result: 0 Entries
    ORDER_CCARD 1 Entry
    Result: 1 Entry
    ORDER_CCARD_EX 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_EX 0 Entries
    Result: 2 Entries
    ORDER_CONDITION_EX 0 Entries
    Result: 0 Entries
    ORDER_INCOMPLETE 0 Entries
    Result: 0 Entries
    MESSAGETABLE 0 Entries
    Result: 1 Entry
    EXTENSIONIN 0 Entries
    Result: 0 Entries
    PARTNERADDRESSES 1 Entry
    Result: 3 Entries
    WMDVSX 0 Entries
    Result: 0 Entries
    WMDVEX 0 Entries
    Result: 0 Entries
    Z_AVAIL_OUT 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_IN2 0 Entries
    Result: 0 Entries
    ORDER_SCHEDULE_EX2 0 Entries
    Result: 0 Entries
    ORDER_ITEMS_IN2 0 Entries
    Result: 1 Entry
    ORDER_PARTNERS2 0 Entries
    Result: 2 Entries

  • External price not being read in for Item in GN_INVOICE_CREATE and RVAFSS00

    Hi,
    We are trying to create invoices using the RVAFSS00 program which calls the function GN_INVOICE_CREATE.  The billing document is being created.  However, the item price does not bring in the price that we have supplied in the XKOMFKKO-KBETR (Condition amount) field.  In KSCHL XKOMFKKO-KSCHL (Condition type) field we are passing in ZROO which is basically a copy of the pricing condition PR00.
    For ZR00, the condition class is Prices and the calculation type is Quantity.
    We want the item price in the billing document to be the price we supply in XKOMFKKO-KBETR to be multiplied by the XKOMFKGN-KWMENG.  We have left the Rate as blank for ZR00 pricing condition because we want our pricing to override this value.  If we do give a value for the ZR00 pricing condition, then our billing document Net value will multiply the amount by the ZR00 pricing - which we do not want.  We want it to use the XKOMFKKO-KBETR price.
    If you have used this program or function to pass in external prices, your help would be really appreciated.  We have looked through a lot of areas in the IMG for Pricing, Billing, Maintain Copying control of Billing documents.
    Thanks,
    Jay

    Did not find the documentation for the fm any where, i think best place to look for is OSS.
    Parameter: ID_NO_DIALOG is for suppressing some shipping related screen and ID_NO_ENQUEUE is for locking sales order or delivery doc.
    By using where used list of the function module, some times it's possible to find out the use of other parameters.
    Hope this helps.
    Regards
    Sridhar

  • Error in using bapi_salesorder_simulate

    Hi guys,
    Im having this error is BAPI_SALESORDER_SIMULATE:
    "please enter ship-to party or sold-to party"
    What causes this error?
    Please show some sample also on how to populate this bapi to retrieve pricing condition given the delivery number for PO(STO)...
    thanks a lot!

    Hello Mark
    You need to provide both, ship-to-party and sold-to-party, in order to create a sales order. Use the TABLES parameter ORDER_PARTNERS for adding the partners, e.g.:
    PARTN_ROLE  = 'SP'        " sold-to-party, 'SH' = ship-to-party
    PARTN_NUMB = <debitor number with leading zeros>
    ITM_NUMBER  = '000000'  " I assume this is for the header
    Regards
      Uwe

  • Query related to FM gn_invoice_create

    Hi Experts,
    I need a clarification related to the FM gn_invoice_create.
    As per the requirement, We will get the test data from the Non SAP system. The Third party will place the input file in the application server.
    Our code should process the file and get the inputs from the file and pass the same to the FM gn_invoice_create.
    Now, till this, the development is done. The query is that the test data which we are passing to the FM is from the non-sap system.
    So, when i try to pass the input to this FM, i am getting error like all the input data is not available
    For (eg) : sales order type is not available, document not available.
    But when i read the documentation, i came to know that without any reference, wee can create invoice using this FM.
    Can anybody suggest if i do something wrong in this?.
    Thanks & Regards,
    Prabu

    Hi Karwin,
    The function module "GN_INVOICE_CREATE " has status 'Not released'.
    The release status is visible in the Attributes tab in SE37.
    According to the note
    415983 Modification/customer developments of SAP function
    109533 Use of SAP function modules
    Attributes. Some of the reasons why internally released Function
    modules are not documented are as follows;
    - too much overhead
    - internally released function modules are often changed and updated
    - are designed for specific purposes by the relevant Application
    Developers etc.
    SAP does not support problems that occur if the customer used non-released function modules.
    Many thanks,
    Mohammed Hussain.

  • Manual pricing condition type in values in - BAPI_SALESORDER_SIMULATE

    Hi Guys
       I am using Function Module <b>BAPI_SALESORDER_SIMULATE</b> to get the prices. I also want to enter a particular condition type for which i need price simulation. This is equal to <b>manually</b> entering the <b>condition type</b> , apart from  condition types determined automatically in VA01. Please let me how to go about this. Thanks .
    Regards
    Srikanth M

    Hi,
    If you want to enter header conditions, you have to use the fields:
    <b> ORDER_HEADER_IN-cd_type1    = 'ZVOL'.
        ORDER_HEADER_IN-cd_value1   = '1.0'.
        ORDER_HEADER_IN-cd_type2    = 'ZTAP'.
        ORDER_HEADER_IN-cd_value2   = '2.0'.</b>
    If you want to enter item conditions:
    <b>
        ORDER_ITEMS_IN-cond_type  = 'ZTAT'.
        ORDER_ITEMS_IN-cond_value = '3.0'.
        ORDER_ITEMS_IN-cond_type2  = 'ZTUT'.
        ORDER_ITEMS_IN-cond_value2 = '5.0'.
    </b>
    I hope it helps you.
    Alexandre Nogueira

Maybe you are looking for