Copying the sales price data into Condition type

Dear SD Gurus,
Iam in a typical situation.  my client is into Electrical Installation and services, so based on the tender documents, they quote the project.
they are doing costing (ie arriving at a supply rate) in quotation. To arrive at a supply rate, they are entering the cost price of the material ie (PR00) in the quotation and adding the profit (for eg : ZPRF condition type) for it. now my problem is i have to add these two condition types into one condition type to arrive at a selling price. how can i achieve this.
And also while creating the sales order with reference to quotation, these two condition types (ie cost price(PR00) and profit (ZPRF) should not get displayed in the sales order.
Is there any solution for this method.
eagerly waiting for your replies.
Thanking you all in advance
rgds

Hi SD
First of all for project quotation the best practice documentation is available in SAP Discrete Manufacturing ,please  go through it . that will help.
Secondly for getting costs in quotation level pricing u can use either of 2 conditions EK02 or VPRS that will give cost .
Add Profit condition to it .
U can  use different pricing procedure for quotation and sales order and in copy controls give routine to redetermine manually.
Else  if u r using the same pricing procedure  ,take help of Abap developer for changing table controls in program.
Check whether u can use  Transaction SHD0.
Hope this helps
Regards
Mandar

Similar Messages

  • Function Module for getting the Sales Price for a condition type

    Hi,
    I am looking for a standard function module to which I can pass my condition type(new customizing) and it will return the sales price. The customer is going to create some new condition type to manitain the sales price. I'll have the necessary information like material/sales org/distribution channel, customer and need the standard function module to read the condition records for that condition type(as configured) and give me the price. PLease help if you know of a standard function module performing this.
    Thanks in advance.
    Regards
    Malthi

    Hi malthi ,
    welcome to sdn
    for material sales area u can look for the validations is table MVKE.
    the classification of the conditions is in tables like A901, a902 etc which in my opinion holds the condition types per classification .
    put a A* in se11 and this will give the list of tables per classification .
    u need to get the conditions as per kschl and dmbtr and
    etc..
    like this ..
    Get Condition Values for Material/Plant combination
      IF NOT i_a916[] IS INITIAL.
        SELECT knumh kappl kschl krech
               kbetr konwa kpein kmein
               INTO TABLE i_konp
               FROM konp
               FOR ALL ENTRIES IN i_a916
               WHERE knumh EQ i_a916-knumh AND
                     kappl EQ i_a916-kappl AND
                     kschl EQ i_a916-kschl AND
                     loevm_ko NE 'X'.
      ENDIF.
    Get Condition Values for Material/Plant/Ordertype/
    Customer combination
      IF NOT i_a925[] IS INITIAL.
        SELECT knumh kappl kschl  krech
               kbetr konwa kpein kmein
               APPENDING TABLE i_konp
               FROM konp
               FOR ALL ENTRIES IN i_a925
               WHERE knumh EQ i_a925-knumh AND
                     kappl EQ i_a925-kappl AND
                     kschl EQ i_a925-kschl AND
                     loevm_ko NE 'X'.
      ENDIF.
    just check this Fm if u can apply ur condition over here ..
    ME_GET_PRICE_CONDITION
    regards,
    VIjay.

  • Selecting the best Price for a condition type but only for some customers

    Hi All,
    I have this situation where we have condition type ZPPR (COPY OF PR00) with 5-6 Condtion tables.
    in Access sequence for ZPPR, we have Exclusion Indicator set for all the conditiona tables so if first price is found, it doesn't search for others.
    Now I have a requirement that we should search for all the condition records and choose the lowest price. But this should happen for only a certain type of customers and not for everybody.
    Spefically we have:
    1. Contract Price
    2. Plant/Material price
    Normally, if contract price is found, it doesn't look for Plant/Mat price but we want to offer our customers(some of them) an option where they could choose the lower of the two price. We set both the prices every day based on some inputs.
    Regards,
    Luke
    Edited by: Lukesh Singla on Dec 21, 2011 8:49 PM

    Hi Luke,
    We have multiple option for this implementation:
    Option 1: If possible based on access sequence. Not sure if this is suitable considering you mentioned that ZPPR has 5-6 access sequence.
    1) Store Contract price in condition type ZPPR and store  Plant / Material Price in new condition type say, ZPPX.
    2) Have separate pricing procedure and determine them based on customer type. In first pricing process XXXX01, configure Condition exclusion with the setting that ZPPX should be deactivated if ZPPR is present, condition exclusion procedure D (exclusive) . In second pricing procedure XXXX02, configure condition exclusion with the setting that compare ZPPX and ZPPR and activate best condition type for the customer by using condition exclusion procedure C (Best condition between two exclusion groups ).
    Option 2:
    1) Copy  ZPPR and its access sequence to a new condition type and access sequence say ZPPX without checking exclusion indicator in the access sequence. In the condition type control for condition type ZPPX >> Master data section >> Reference Condition type = ZPPR so that master data records  need not be duplicated.
    2a) Assign the current procedure to the set of customers which should get the first price. Create a new procedure with condition type ZPPX instead of ZPPR keeping other parameters similar and assign the new procedure to other set of customers who should get the best price.
    OR
    2b) if 2a is difficult in terms of future  maintenance, add condition type ZPPX in the same procedure and create 2 new pricing requirement validating the customer segments and assign them to respective condition type in procedure ZPPR and ZPPX.
    3) Maintain condition exclusion for condition type ZPPX with B ( Best condition within Condition type).
    Hopefully it helps. Let me know if you need any other help in implementation of the solution.
    Regards,
    Naveen Aggarwal

  • Pricing date in condition type

    Hi All,
    I just wanted to know what is use of "pricing date" + '' quantity conversion" field in condition type.
    How and what is the functionality of this field.
    Thanks in advance.
    Cheers!

    > I am trying to find out what is the difference if I  am going to sellect Billing date (KOMK-FKDAT)....instead of Price date (KOMK-PRSDT).
    If you will give the date Billing date, then the value of condition type will be effective only on the billing date, and not on the Pricing date.
    For example :
    You made the sales order on date 20.06.2009  for the 10 Qtys at the rate of 10 Rs Per qty
    Did the PGI on 23.06.2009
    Invoice on 23.06.2009
    Now say for a specific condition type the record get changed on 23.06.2009 ( Like fresigh surcharge) then the new record will be effective if you have choosen the option billing date in Condition type. and if you have choosen the option of Price date than the date from the sales order pricing date will come into picture.
    Hope its clear.
    > QTY Conversion.
    >
    > Prasanth you mention ''condition bases'' ...................if you could what exactly you mean by that OR is there any other way to understand this more clearly.
    As you might be knowing in pricing procedure we give Alternative condition base value......... So if quantity conversion is ticked here then the conversion of quanity will takes place accordingly.
    Condition bases in nothing but Alternative condition base value in Pricing pricedure.
    Thanks,
    Raja

  • Download Sales Contract data into Excel sheet

    Hi,
    I need to download the Sales Contract Data into excel sheet is there a Function module that i can use?? Else how do i go about it. Kindly help.
    Thanks,
    Riya.

    use the function module FUNCTION 'GUI_DOWNLOAD'
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = 'C:\REPORT.XLS'
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = IT_PR
    FIELDNAMES =
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.

  • ME21N : Donu2019t copy the price for all condition types from last po

    Dear.
    When I create a purchase order the price for all condition types are copied from last purchase order inside the info-record.
    But I have some condition types like FRA1 or FRA2 that I donu2019t want that system transfer price from last purchase order.
    How can I do that ?
    Thanks.

    Hi Cris,
    Go to SPRO>MM>PUR>Info Record>Define Price History> Here with your Purchasing organization if the tick is active that
    Specifies that the order price history (PO price history) is to be updated with the effective price.
    Normally, the order price history is updated with the net price.
    Procedure
    Set this indicator if you want the order price history to be updated with the effective price.
    Thanks
    Diwakar

  • How to copy Sales tab data into spares data

    Hi,
    In CRMD_ORDER Transaction, Once service order(product details are entered)  is created, status is released.
    On clicking follow-up confirmation service order confirmation is created, I need to populate sales tab data in spares tab once confirmation is clicked.
    Is it possible to copy sales tab data in spare parts tab in crmd_order ?  I found CRM_SALES_BADI is triggering just after the confirmation click however it does not have required guid.
    Somebody can suggest how to proceed with the such requirement.
    Thanks
    Anee

    Hi
    You want to copy the sales product as a spares product in Service confirmation from Service order.
    I dont think this is possible, since the sales product has different properties and the ITEM OBJECT TYPE is different from that of SPARES one.
    However I think your requirement is that the sales tab material should be picked as SPARES in confirmation and Confirmed.
    Please provide more details so that I can suggest a workaround, like what you want to do with the material from CONFIRMATION. How are you going to deliver the material to the customer etc. Why it is so rigid as to consider the material as a sales material only in SERVICE ORDER etc.
    regards,
    Surendra More

  • What are the img setting to be fullfilled while copy the Sales document typ

    Hi What are the setting to be fullfilled while copy the sales document type and item category.
    Note:  I have already copied, but unable do the PGI(Post goods issue),  and Billing.
    Thanks
    Prasanna

    Hi
    Answer for this Question.
    we have set the copy control for sales order type and delivery and billing
    Regards
    Prasanna R

  • Issue in Exporting the Sales Price List and Purchase Price List for the Materials from SAP Business ByDesign (SAP Cloud)

    Hello Everyone,
    I would like to have a discussion on the issues, which I am facing at the time of Exporting the Sales Price List and Purchase Price List for the Materials from
    SAP Business ByDesign (SAP Cloud).
    (1). Sales Price List :
    We have maintained Customer Group Specific Sales Price List for the Materials in the following Location.
    Location :         Product and Service Portfolio Work Center > Pricing > Price Lists > Customer Group Specific Price List (Type of Price List)
    Target :             We want to export the entire records in some reports or excel sheet.
    Records :          Number of Materials in the Customer Group Specific Price List is more than 2,00,000
    Issues : 
                                         (A). In the SAP Business ByDesign Screen we can filter by number of records but we can export till  50,000 records.
                                                 And if we are trying to export records more than that limit, then it throws "HTTP 500 Internal Server Error".
                                         (B). We could not find any SAP standard reports in Product and Service Portfolio and/or Business Analytics Work Center
                                                for getting the entire record set of the Sales Price List, so that we can have the entire set of records together.
    Searching For :
                                          (A). Is there any SAP reports or data source available for getting the entire Sales Price List records?
                                          (B). Can we have any other filter conditions for exporting the Sales Price List records in a single shot or module wise?
    (2). Purchase Price List :
    We have maintained the Purchase Price List for the Materials in the following Location.
    Location :           Product Portfolio Work Center > List Prices > Active List Prices (Type of Price List)
    Target :               We want to export the entire records in some reports or excel sheet.
    Records :            Number of Materials in the Purchase Price List is more than 4,00,000.
    Issues :  
                                           (A). In the SAP Business ByDesign Screen we can not see more than 10,000 records and the actual number of
                                                   records are more than 4,00,000. We could able to download the records till 10,000 but that is not sufficient.
                                                   We want to export the entire records in an excel sheet.
                                           (B). We could not find any SAP standard reports in Product Portfolio and/or Business Analytics Work Center for
                                                  getting the entire record set of the Purchase Price List, so that we can have the entire set of records together.
    Searching For :
                                           (A). Is there any SAP reports or data source available for getting the entire Purchase Price List records?
                                           (B). Can we have any other filter conditions for exporting the Purchase Price List records in a single shot or module wise?
    Please go through the attached screen shots for the references and more clarity on the issues.
    I am waiting for the valuable responses.
    Thanks and regards,
    Susanta Dey Sarkar
    Bangalore, India
    19th March, 2015

    Dear Michael,
    The number of records :
    2 Million (Approximately) is for the Sales Price List Material Price Data
    4 Million (Approximately) is for the Purchase Price List Material Price Data.
    Regards,
    Susanta Dey Sarkar

  • Cannot save billing, when the sales price is not maintained in VK11

    Dear Expert,
    I want to block billing when the sales price is not maintained in VK11?
    How to block it?
    Thanks
    SAP Support

    Hi,
    We cannot have incompletion procedure at the billing document level.It will be happened at the sales order level.
    But we can control this one either by using the user exit or any ABAP code.
    Goto the T.Code "V/06".Select your condition type.Details.Maintain the value as "A" for the field "Manual entries".
    Goto the T.Code "V/08".Select your pricing procedure.Details.
    Maintain this condition type as required.
    Save.
    This ensures that it should fetch values for this condition type automatically i.e. from condition record.Else it will throw an error message.
    Regards,
    Krishna.

  • Robocopy not copying the folder creation date

    We migrate the data between 2  Windowsfile servers using robocopy and it works finew ith issues. Only issue is it doesnt copy the folder creatiopn date from source to destination server, it does copy the file creation date without any issues. Command
    we use is as below.
    robocopy.exe %1 %2 /COPYALL /MIR /ZB /R:10 /W:2 /TEE /DCOPY /LOG+:robocopy_%3.log
    This command is called using a batch file where we specify the source and destination using the below syntax.
    call Robocopy_Module.bat "C:\Backup" "C:\Restore"
    Kindly advise if this is normal behaviour , if not what is the correct command used to copy the Folder creation dates.

    I was using like this
    Go to CMD prompt,
    RUN as Administrator
    Type  
    robocopy "source path" "destination Path" / MIR
    It will copy including time stamps.
    or create seprate folder in a destination place and copy everything into that folder.
    It will work.

  • XEM - Unable to load the initial data or the variances(delta) data into sys

    I am installing xEM 2.0 SP 10 (SAP xApp Emissions Management) in a windows environment with SQL 5000.  I installed xEM on NW 2004, usage types AS Java and EP 6.
    I am attempting to load the initial data or the variances (delta) data into the system.  Instruction is on page 15 in the install guide.
    I am supposed to enter the following in the command line:
    java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=[JDBC Driver];[JDBCUrl];[User];[Password]
    Example command for import into SQL Server:
    java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddtek.jdbc.sqlserver.SQLServerDriver; jdbc:datadirect:sqlserver://vma03:1433;SAPC11DB;password
    The customer I am with is running the xEM database on a different instance.  This is where I run into a problem.  I am not sure how to specify the instance in the script.  This is what  I have attempted so far:
    C:\>cd temp\load
    C:\Temp\load>java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddte
    k.jdbc.sqlserver.SQLServerDriver;jdbc:datadirect:sqlserver://PRODSQL43:SQL3:1534;SAPPEMDB;password
    java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:datadirect:sqlserver:/
    /PRODSQL43:SQL3:1534 as user SAPPEMDB (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Unable to connect.  Inva
    lid URL.): [DataDirect][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
            at com.sap.sdm.util.dbaccess.DBTask.dbImport(DBTask.java:356)
            at com.sap.sdm.util.dbaccess.SapTransTask.perform_import(SapTransTask.java:293)
            at com.sap.sdm.util.dbaccess.SapTransTask.execute(SapTransTask.java:51)
            at com.sap.sdm.util.dbaccess.SapTrans.main(SapTrans.java:21)
    import aborted with java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:da
    tadirect:sqlserver://PRODSQL43:SQL3:1534 as user SAPPEMDB (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Unab
    le to connect.  Invalid URL.): [DataDirect][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
    C:\Temp\load>java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddte
    k.jdbc.sqlserver.SQLServerDriver;jdbc:datadirect:sqlserver://PRODSQL43;SQL3:1534;SAPPEMDB;password
    java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:datadirect:sqlserver:/
    /PRODSQL43 as user SQL3:1534 (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Error establishing socket. Connec
    tion refused: connect): [DataDirect][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect
            at com.sap.sdm.util.dbaccess.DBTask.dbImport(DBTask.java:356)
            at com.sap.sdm.util.dbaccess.SapTransTask.perform_import(SapTransTask.java:293)
            at com.sap.sdm.util.dbaccess.SapTransTask.execute(SapTransTask.java:51)
            at com.sap.sdm.util.dbaccess.SapTrans.main(SapTrans.java:21)
    import aborted with java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:da
    tadirect:sqlserver://PRODSQL43 as user SQL3:1534 (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Error establi
    shing socket. Connection refused: connect): [DataDirect][SQLServer JDBC Driver]Error establishing socket. Connection ref
    used: connect
    C:\Temp\load>java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddte
    k.jdbc.sqlserver.SQLServerDriver;jdbc:datadirect:sqlserver://PRODSQL43:1534;SQL3;SAPPEMDB;password
    java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:datadirect:sqlserver:/
    /PRODSQL43:1534 as user SQL3 (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver][SQLServer]Login failed for user
    'SQL3'.): [DataDirect][SQLServer JDBC Driver][SQLServer]Login failed for user 'SQL3'.
            at com.sap.sdm.util.dbaccess.DBTask.dbImport(DBTask.java:356)
            at com.sap.sdm.util.dbaccess.SapTransTask.perform_import(SapTransTask.java:293)
            at com.sap.sdm.util.dbaccess.SapTransTask.execute(SapTransTask.java:51)
            at com.sap.sdm.util.dbaccess.SapTrans.main(SapTrans.java:21)
    import aborted with java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:da
    tadirect:sqlserver://PRODSQL43:1534 as user SQL3 (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver][SQLServer]Lo
    gin failed for user 'SQL3'.): [DataDirect][SQLServer JDBC Driver][SQLServer]Login failed for user 'SQL3'.
    C:\Temp\load>java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddte
    k.jdbc.sqlserver.SQLServerDriver;jdbc:datadirect:sqlserver://PRODSQL43:1534:SQL3;SAPPEMDB;password
    java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:datadirect:sqlserver:/
    /PRODSQL43:1534:SQL3 as user SAPPEMDB (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Unable to connect.  Inva
    lid URL.): [DataDirect][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
            at com.sap.sdm.util.dbaccess.DBTask.dbImport(DBTask.java:356)
            at com.sap.sdm.util.dbaccess.SapTransTask.perform_import(SapTransTask.java:293)
            at com.sap.sdm.util.dbaccess.SapTransTask.execute(SapTransTask.java:51)
            at com.sap.sdm.util.dbaccess.SapTrans.main(SapTrans.java:21)
    import aborted with java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:da
    tadirect:sqlserver://PRODSQL43:1534:SQL3 as user SAPPEMDB (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Unab
    le to connect.  Invalid URL.): [DataDirect][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
    C:\Temp\load>
    My last attempt was a command using colons and semicolons with the following results.  The closest (there was a significant delay before the error or failure) appears to have been //PRODSQL43;SQL3:1534; (second attempt).  The error listed from this attempt is   "Error establishing socket. Connection refused: connect".
    I also checked the default database that user SAPPEMDB has in place and it is assign the correct database.
    Please help.
    Message was edited by: Owner
            Mike Smayrabunya

    Hey,
    It looks like one of the following:
    1. The DB is down,
    2. The user SAPPEMDB does not have the right authorization.
    3. The password of the user SAPPEMDB is not password
    4. The syntax is incorrect
    in order to find what is the problem,
    please:
    1. Login in the the DB PRODSQL43:1534 with the user "SAPPEMDB" and the password "password",
    this will eliminate the options 1 - DB down, 2 -SAPPEMDB does not have authorization and 3 - password of the user SAPPEMDB is not password.
    2. If the login failed, than please run sql trace with security elements (in the client there is a tool called "SQL Profiler"
    3. If the login is correct, than you check the syntax of the command:
    "java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddtek.jdbc.sqlserver.SQLServerDriver; jdbc:datadirect:sqlserver://vma03:1433;SAPC11DB;password"
    According to the error message "Error establishing socket. Connection refused"
    it looks like The DB is down or syntax is incorrect.

  • How to transfer the Legacy Transaction Data into SAP R/3

    Hi Experts,
    I  have  issue with legacy transaction data transfer  to R/3 system. My clients want to see  last 3 years legacy transaction data into SAP R/3 system.  But I am not sure whether it is possible or not.
    Please let  me know any possibilities to transfer the legacy tansaction data into SAP.
    Please help me out from this issue.
    Advanced Thanks,
    Chandra

    Hi Sunitha,
    Here legacy sytem is MRP for Retail Sales.
    And format is excel. Since three years data available in
    existing system.
    Please let me know if any further information required.
    Regards,
    Chandra

  • Urgent: How to copy multiple sales order items into a return sales order?

    Dear developers,
    I have a requirement to copy multiple sales order items into a single return sales order. For example, generated return sales order have 2 items, item 10 is created with reference to sales item 2610/10 and item 20 is created with reference to sales item 2611/20. What's more, when it happens, copy control should be taken care of. I know it is possible to create this kind of order by transaction. But how to do it in coding?
    In current SAP release, there is only BAPI for creating with reference on 1:1 relationship which means copy one document to another but what I need is N:1 copy.
    Any suggestion is high appreciated!!
    BR,
    Tony.

    Hi ,
    If you are creating sales order by using bapi then after calling bapi you can check import parameter <i><b>SALESDOCUMENT</b></i> in the bapi function module .If this parameter is not initial then sales order is created in this case you can create return order. If this import parameter is initial then sales order is not created and you cannot use return bapi function module.
    Bapi is simple method than BDC.
    In above case it is required to call BAPI_TRANSACTION_COMMIT after every successful sales order creation.
    One more important point is you have to clear import parameter <i><b>SALESDOCUMENT</b></i>  before calling sales order creation function module.
    Thanks,
    shyla

  • How to extract all the documents posted to a condition type?

    Hi,
    I would like to extract all the documents using a particular condition type. Which report can i use for this?

    Hi,
    some useful T-code for your req -
    T-code -      Standard program  -        Description
    FOJUNS -    SAPMF60UN_VICN0  -   Enter Sales with Condition Types
    FOJWNS -   SAPMF60UN_VICN0  -   Display Sales with Condition Types
    FOPB  -       RFVICUP2                 -    Condition types with acc./def. ID
    FOU2NS -   SAPMF60UN              -   Enter Sales with Condition Types
    FOU3NS-    SAPMF60UN              -   Display Sales with Condition Types
    FZCE -        SAPL0WP1                 -  Maintain Condition Type (DW)
    FZCF  -       SAPL0K01                 -   Maintain Condition Type (DD)
    The full list of transaction codes is maintained in the tables TSTC and TSTCT. So, you can have a look via SE16 in your own SAP system as well.
    Regards
    Raj

Maybe you are looking for

  • How to add List view to SharePoint 2013 app

    Hi I'm developing intranet metro style app as SharePoint 2013 auto hosted . i need to get promoted list to display in my app page as it is display in SharePoint host site. i have seen some blog post but no clue of detail way of doing it (http://www.g

  • Multiple bone animations in a single export

    I was wondering how to attach multiple bone animations to a single model, or if it is even possible. Do I just need to have duplicates of the model, each with its own animation? Is there any way to specify a range of keyframes within a single animati

  • I don't have a video signal on the TV by wathing a DVD via superdrive but have audio

    While watching a DVD running on my superdrive I get an audio signal via Apple TV but no picture (video). I am running the latest software versions. Any suggestions?

  • Navigation in UI-Tree

    Hi everybody, when i navigate through my tree and than close all nodes and open an other node the previous node will also be opened. What could be the problem? I don't want to open the previous node which was focussed. The proplem is the focus. How c

  • Can't Register External User on Mobile Device

    In our Filr 1.2 environment, we can successfully share with external users and they can register and access the shared data _if they register on a...