Issue with create deployment order with BAPI_POSRVAPS_SAVEMULTI3

Hi Experts,
  We are trying to create deployment orders with BAPI_POSRVAPS_SAVEMULTI3. The following are the input:
LOGICAL_SYSTEM                  RR1CLNT010
ORDER_TYPE                      2
EXT_NUMBER_ASSIGNMENT
COMMIT_CONTROL                  E
PLNG_VERSION                    000
NO_CREATE
PLANNING_MODE_USAGE             0
EVENT_CONTROL                   1
And for receipts and requirement, we put ATP category as EG and EF.
But it return error 'Events are supported only for Purchase Requisitions'. For u2018EGu2019 and 'EF', I can see it is category typ '2'.
Does this BAPI able to create deployment STR or it can only create SNP STR?
Thanks.
best regards,
Wenyan

Hi Wenyan,
In the BAPI, the following code should be responsible for the error message:
* -> check: event_control is only available for purchase requisition
  if event_control = gc_apo_bapi_create_event and order_type <> gc_requisition.
*   -> error message
    _apo_bapi_message_add_itab0 gc_error gc_apo_bapi_msgclass '342'
    return.
    lv_error = gc_true.
  endif.
The relevant constants are:
* -> constants for event control
CONSTANTS:
  gc_apo_bapi_no_event TYPE bapi10503eventcontrol VALUE space,   "collect but no direct sending
  gc_apo_bapi_create_event TYPE bapi10503eventcontrol VALUE '1',     "collect + send event
  gc_apo_bapi_no_event_collect TYPE bapi10503eventcontrol VALUE '2'. " no collect and no sending
*--> External Order types
CONSTANTS:
*  Bestand
gc_stock              TYPE /sapapo/r3obj VALUE '0',
*  Bestellanforderung
gc_requisition        TYPE /sapapo/r3obj VALUE '1',
*  Bestellung
gc_purchase_order     TYPE /sapapo/r3obj VALUE '2',
As you can see, if you want to create an order other than SNP purchase requistion, you cannot set the control_event as '1'.
Best Regards,
Ada

Similar Messages

  • Issue when creating sales order with Sold-to/Ship-to Party's state

    Hi All,
    we have issue while creating Sales Order with picking up of State tax
    for Ship-to-party & Sold-to-party.
    <b>When we create a sales order, for the sold to party 140052732 and
    ship to party 140052733 it is picking state tax. Which should not
    suppose to pick? Because the partner is marked as tax exemption</b>.
    Can any body tell me how can we solve this issue!
    Why this is happening!
    How to make not to pick tax when it is marked for tax exemtion.
    As i am not Functional guy i am not aware what is happening here!
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep
    What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
    If so go and check the condition record meant for it. Follow the following steps
    1) Go to Sales order
    2) Select the line item for which the state tax is being picked.
    3) In the condition tab select analysis.
    4) In Analysis you shall find the condition type meant for state tax.
    5) See which condition record has been found.
    6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
    7) If wrong correct it.
    8) If anything else come back to the post and inform the details
    Thanks
    Regards
    Sunil

  • Issue when creating sales order with Sold-to/Ship-to Party's state tax

    Hi All,
    we have issue while creating Sales Order with picking up of State tax
    for Ship-to-party & Sold-to-party.
    <b>When we create a sales order, for the sold to party 140052732 and
    ship to party 140052733 it is picking state tax. Which should not
    suppose to pick? Because the partner is marked as tax exemption</b>.
    Can any body tell me how can we solve this issue!
    Why this is happening!
    How to make not to pick tax when it is marked for tax exemtion.
    As i am not Functional guy i am not aware what is happening here!
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep
    What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
    If so go and check the condition record meant for it. Follow the following steps
    1) Go to Sales order
    2) Select the line item for which the state tax is being picked.
    3) In the condition tab select analysis.
    4) In Analysis you shall find the condition type meant for state tax.
    5) See which condition record has been found.
    6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
    7) If wrong correct it.
    8) If anything else come back to the post and inform the details
    Thanks
    Regards
    Sunil

  • Issue in creating sales order with ref contract(quantity)

    hi friends,
           I am creating sales order with reference contract using
    "BAPI_SALESORDER_CREATEFROMDAT1"
    my issue is with quantity field when i am entering quantity as  1 then it is taking as 0.001
    i am also declaring its unit field too but there is no change.
    in my program i am taking quantity as parameter.
    field description is like this Order qty in sales units - 00009001 corresponds to 9.001
    is there any chance of changing the quantity .
    please help.

    There is another similar post...look at those comments.  Consider the data types in use...in true numeric fields with decimals, the decimal is implied, so look at how you're sending and/or converting any value....  For instance, if I were sending data to a quantity field described as curr 15, decimals 3, I would expect that I needed to send 1.000 (or perhaps 1000, depending on my testing) in the input to get a quantity of 1.

  • Issue while creating an order with reference to a contract

    When I try to create an order with reference to a contract having KMATs at line item using VA01, it works fine. But when we try to record the same using SHDB, it comes out after accepting the Contract Number on the pop up screen.
    If some one can throw light as to if it the config issue or any setting that needs to be looked into?

    No special settings. This is a typical problem. SHDB (SM35, or call transaction) can be different to "normal" transaction.
    You can only follow the special sequence given by the transaction running in BDC mode (if you are using exits check on these fields: sy-binpt, sy-calld).
    Kind regards,
    JP

  • Net value issue while creating return order with reference to billing

    Dear All,
    I created SO / DEL/ BILLING for qty 100 say net value-20000.When i created Return order with  refrence to billing document,
    net value appearing same ( 20000) for 50 quantity.Pl do advise asap as its required urgently.
    Thanks in advance.
    Regards
    raj
    Edited by: raj_sapsd on Aug 20, 2010 9:18 AM

    surelly problem in VTAF
    F2 to RE
    DATAT: 103
    DATAT: 103
    DATAT: 003
    Coping requirement 021
    item level TAN  and ietm cat proposal G2N
    DataT: 153
    Datat: 104
    datat: 004
    Coping requirement 303
    Update doc Flow X
    only possibilites Removed my Moderator
    Edited by: Lakshmipathi on Aug 21, 2010 9:31 AM
    Please avoid asking for points

  • Error while creating purchase order with account assignment category "A"

    Dear All,
                      At the time of creating purchase order with account assignment category A - Asset its throwing error as " GL Account 123400 can not be used"
    how to resolve this  issue"
    Edited by: Matt on Sep 16, 2010 10:09 AM - removed bold tags

    HI,
    Assign all assets GL to Asset Class
    spro --> financial accounting new -->assets accounting --> assets accounting (lean Implementation) --> organization structures --> Assign GL
    Hope Help U !
    Regards,
    Pardeep Malik

  • How to create Sales orders with external id ?

    Hi Experts,
       I wanna write a program to create Sales Order with external id via function muodule 'CRM_ORDER_MAINTAIN' and 'CRM_ORDER_SAVE'.But i don't know how to do and do any body tried it.The key issue is that how to use external id which is supplied by ourself rather than internal id supplied by system.
    Thanks for all.

    Hi,
    If you have already set the number range as an external range.
    Then just passing the transaction type to field 'process_type' and external id to field 'object_id' of table ct_orderadm_h. Sales order will created with the assigned external id.
    Hope this help.
    cheers,

  • Creating Sales Order with credit card using Process Order API

    Hi All,
    When trying to create sales order with payment type as Credit card using Order data storing into staging tables and then calling Order Import Concurrent Program. The order is being created in ENTERED state.
    While trying to passing the same details to Process Order API to create Sales Order, we are getting following error:
    Unable to set up a Credit Card Bank Account for the Customer.
    Credit Card information on the order is not valid.
    Why getting this error while using Process Order API.
    Regards,
    KANN.

    When using the API, are you trying to create the order as booked using the booked flag or the book action?  I would recommend using the action if you are not. To troubleshoot, I would try the API without booking and then use the following article to determine the issue:
    Unable To Setup A Credit Card Bank Account For The Customer. CC Information On The Order Is Not Valid (Doc ID 1450936.1)

  • Creating an order with reference to another doc

    I want to create an Order with reference to another document.....in other words it should be a copy of the other document...
    Any ideas of what function modules we have to use and how we can acheive it...

    Hi Vin
    Creating a Sales Order from a Sales Order Quotation is SAP Standard so really should not be an issue for you.
    You do need to maintain the Copy Control Configuration as per my previous reply.
    Define Copying Control for Transaction Types
    Define Item Category Determination when Copying
    Effectively the details of your Transaction Type for Sales Order Quotation will copy into your Sales Order transaction.
    I'm used to working in an environment where the user manually decides to then continue with a follow-up transaction, therefore I'm not too sure which Function Modules you need to use in order to do this automatically.
    But you are on the right track.
    Regards
    Arden

  • Error while creating sales order with ref to contract

    while creating sales order, with refernce to contract system is giving a message
    Configuration not possible for material : Reason 3 --> Help
    Message no. V1360
    and the message is as follwed can any one explain
    Diagnosis
    This may have been caused by one of the following:
    1. The configuration profile for the material allows or requires the bill of materials to be exploded during order processing. However, a plant has not been specified in the item.
    2. The configuration profile of the material allows or requires the bill of materials to be exploded during order processing, but the order quantity in the item must be greater than 0.
    3. A configuration profile has not been maintained
    or
    A configuration is not permitted for the material
    or
    4. The configuration profile of the material allows or requires the bill ofmaterials to be exploded during order processing. However, the system could not determine a date because important data is missing from the item (see incompletion log).

    Hi
    I think you have both Variant configuration and BOM.
    Pls ensure the following.
    1. BOM masterdata is maintained for the variants
    2. Variant configuration is configured correctly
    Configuration profile is created for the material
    Knowledge base object and run time version are available
    3. Maintain materials as not relevant for delivery or dont give delivery quantity as 0
    Once you are sure that these are in proper shape, you can start creating order. The problem wont come.
    Reward points if it helps you.

  • Error message while creating production order with KMAT material strategy25

    Hi PP Gurus I am running variant configuration cycle...Strategy 25, Custermer Req KEK (KMAT Matrl)
    Sales order & MRP Picked the components correctly as per the dependencies
    written. So Planned order generated against sale order.
    When I tried to convert planned order to Production order...I am getting the
    below error message..
    Error Message:
    You cannot make an assignment to make-to-order stock Message no. CO684
    Diagnosis The component cannot be allocated to an individual stock because
    make-to-order production and engineer-to-order production cannot be executed
    with this order.
    A possible cause is that you are trying to create an order with reference to a
    sales-order/project, where an account assignment to a sales order/project is not
    allowed in the settlement profile that is assigned to the chosen order type.
    This is inconsistant.
    System response The following responses are possible:
    Order processing is cancelled.
    The system resets the special stock indicator back to the original value.
    Procedure Choose another order type.
    I used order type with SD1 as settelement profile.
    OVZG: default 046, settlement profile = SD1
    OPJH: Settlement profile = SD1
    Plz through some light on this if u have worked on Variant Configuration/MTO
    settlements.
    Question:
    1) Is creation of production order with KMAT material supported by SAP?
    2) If yes, why the above error occurs?
    Waiting for Ur reply
    With Best Regards

    Dear R.Brahmankar,
    I have check on the note, but it is not relevant to ecc6. The current system default setting is :
    Standrad setting for reqt class 046
    Special Stock E
    Acct Assgt Cat. M
    Valuation M
    Settlmt Profile SD1
    However if I change the Acct Assgt Cat. from M to E. It resolve the problem. I would like to know is this the right solution?
    Config in Acct Assgt M
    Consumption Posting = E
    Config in Acct Assgt E
    Consumption Posting = '  '
    In F1 key of Consumption Posting field it shown following:
    To flag the sales order item as cost- and revenue-carrying, enter an "E" (settlement via sales order).
    If you do not wish to flag the sales order item as cost- and revenue-carrying, do not enter anything.
    Dependencies
    If you are working with nonvaluated sales order stock, always flag the sales order item as cost- and revenue-carrying.
    If you are working with valuated sales order stock:
      In the case of complex make-to-order production, flag the sales order item as cost- and revenue-carrying
      In the case of sales-order-related mass production, do not flag the sales order item as cost- and revenue-carrying
    Should we change to E?
    Regards,
    Ong

  • Error while creating sales order with ref using SD_SALESDOCUMENT_CREATE

    Hi
    I am creating sales order with reference using function module SD_SALESDOCUMENT_CREATE , while creating i am getting error
    Document doesn't have document category even thougth i am passing document category in header as well as item lavel.
    In VBUK table there is no value for VGTYP.
    Can you please help me how to resolve it.
    Thanks & regards
    kiran

    Problem resolved by passing   REFDOC_CAT in the FM along with  SD_DOC_CAT.
    Thanks

  • BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER

    Hi ,
    I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
    Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
    but couldn't find for create with reference to Order ...
    Thanks in advance ...
    Regards
    Rajesh.

    Hi,
    You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
    Reward if it's useful.
    Thanks,
    Anil

  • Create sales order with reference to 10 quotation

    Create sales order with reference to 10 quotation I want to put all quotation means take reference in one sales order how I can do it because when tried va01 and taken reference of question it allow to put only one question number how can I do it for multiple question
    Ahmed

    Hi Raj,
    If you come back to initial screen after coping the first quotation ,then system will ask you whetehr to save or cancel the data,if we select save then it will be saved immediately,else it will cancel.So ,it is not possible to copy more than one quaotation in standard SAP.The only option is to deveop a BDC with the help of abaper.
    We can only create this when header data is same in all the quotations.
    Regards,
    Pasapula.
    Edited by: Pasapula on Jul 24, 2009 9:48 AM

Maybe you are looking for

  • Need help creating a backup strategy

    Hello, I have never backed up any data in my life (long time mac user, no problems) and have just recently bought the Lacie d2 250 firewire drive. The reason for this purchase was that I am sending my MBP in for repairs and began reseaching various b

  • My iPhone 4s is stuck on restoring firmware, but my power button is broken.

    Hello all,                Earlier today my iMessage wasn't working. I tried everything but unfortunately, had no luck. I decided to reset the iPhone to factory settings and the screen decided to stay in restoration mode all day. This is the screen I'

  • Why does my iPhone 3G refuse to connect to Wi-fi?

    My iPhone will not pick-up any wireless networks at all.Just E/3G. When I go into the settings it does the little loading circle thing but wont find any networks that I've been to. Can someone please help???

  • My iPhone 5 Never has Space, says over capacity

    Hello, My iPhone 5 is up to date with all of the latest updates. I no longer use iCloud for pictures (I think I dsiabled it correctly) and now use dropbox instead. I have 64  pictures, 2 videos I saved from snapchat (~10 seconds long) and currently 1

  • ADF Business generator

    ADF business component generator Hi, I am getting the following error while generating ADF business components from Designer oracle.jmig.source.ExtractorException: Caught SQL exception:ORA-00942: table or view does not exist at oracle.jmig.source.des