How to create contract using fm BAPI_CONTRACT_CREATEFROMDATA or fm SD_SA...

Hi All,
I have a reqiurement where i need to create a contract using either of the function modules SD_SALESDOCUMENT_CREATE or BAPI_CONTRACT_CREATEFROMDATA  but i want the data related to partner like sold-to-party  in the contract to come from reference document no. but it is not taking values form that referenced document.
Message was edited by:
        agarwal ashsih

Hi,
Look at the below code
CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
EXPORTING
* SALESDOCUMENT =
SALES_HEADER_IN = IT2_HEADER
* SALES_HEADER_INX =
* SENDER =
* BINARY_RELATIONSHIPTYPE = ' '
* INT_NUMBER_ASSIGNMENT = ' '
* BEHAVE_WHEN_ERROR = ' '
* LOGIC_SWITCH = ' '
* BUSINESS_OBJECT = ' '
* TESTRUN =
* CONVERT_PARVW_AUART = ' '
* STATUS_BUFFER_REFRESH = 'X'
IMPORTING
SALESDOCUMENT_EX = IT2_SALESDOC
* SALES_HEADER_OUT = IT2_HEADERSALES
TABLES
RETURN = IT2_RETURN
SALES_ITEMS_IN = IT2_ORDERITEMSIN
* SALES_ITEMS_INX =
SALES_PARTNERS = IT2_ORDERPARTNERS
SALES_SCHEDULES_IN = IT2_ORDERSCHEDIN
* SALES_SCHEDULES_INX =
SALES_CONDITIONS_IN = IT2_CONDITIONS
* SALES_CFGS_REF =
* SALES_CFGS_INST =
* SALES_CFGS_PART_OF =
* SALES_CFGS_VALUE =
* SALES_CFGS_BLOB =
* SALES_CFGS_VK =
* SALES_CFGS_REFINST =
* SALES_CCARD =
SALES_TEXT = IT2_ORDERTEXT
* SALES_KEYS =
* SALES_CONTRACT_IN =
* SALES_CONTRACT_INX =
* EXTENSIONIN =
* PARTNERADDRESSES =
* SALES_SCHED_CONF_IN =
* ITEMS_EX =
* SCHEDULE_EX =
* BUSINESS_EX =
* INCOMPLETE_LOG =
* EXTENSIONEX =
* CONDITIONS_EX =
Regards
Sudheer

Similar Messages

  • How to create contracts in crm

    Hi friends can any one please tell me how to create contracts in crm
    using crmd_order.I got a work on this and i dont know about crm.
    Thanks.

    Business transaction --> Create or F5, chose the transaction you want to create. Fill in Sold to party, item & other details.
    Best Regards,
    Vishant

  • How to create contract in SAP-SRM via a bespoke?

    Hi All,
    I got one requirement to create contract in SAP-SRM via a bespoke interface from the sourcing workbench.
    How to create contract in SRM via a bespoke?
    Even I don't know what is a bespoke. I belong to SAP bw platform
    kindly give me the solution.
    Thanx in advance,
    Ravi.

    Hi
    <b>Bespoke</b> <u>means</u> <b><u>Customer development</u></b>.
    So you can create Shopping carts, either automatically via logging to SRM portal or programmatically using Bespoke developments / programs.
    <b>BAPI Function module -  'BBP_PD_SC_CREATE_EXTERNAL' is used to create shopping cart from portal with other function modules.</b>
    <u>Also you can use RFC BBP_PD_SC_CREATE function module for Creating Shopping Cart.</u>
    <b>Create Shopping cart (or PO) in SRM/EBP from a flat file</b>  
    /message/3529548#3529548 [original link is broken]
    Create Shopping cart (or PO) in SRM/EBP from a flat file
    Function Module's for Shopping Cart.
    Do let me know.
    Regards
    - Atul

  • How to create and use mutable array of UInt8

    Hello!
    If I get it right, UInt8 *buffer, buffer - is a pointer to a start of array?
    Then how to create and use mutable array of UInt8 pointers?
    The main target is a creation of the module that will store some byte array requests and will send all of them at the propriate moment.

    I try
    - (void) scheduleRequest:(UInt8 *)request {
    if (!scheduledRequests) scheduledRequests = [[NSMutableArray array] retain];
    [scheduledRequests addObject:request];
    But get warning:"passing argument 1 of 'addObject:' from incompatible pointer type"

  • HOW TO CREATE  and  USE EVENTS IN WORKFLOWS .

    HOW TO CREATE  and  USE EVENTS IN WORKFLOWS with the help of classes.
    What i am doing is..
    open se24
    event tab->event name->parameters
    method tab->method name->event handler->copy parameters
    interface tab->if_workflow->enter
    tell me what else to do step by step
    Another important thing is that HOW to use these class events to trigger the workflows.
    REPLY ASAP
    THXS IN ADVANCE

    Hi,
    Pl. see this blog...
    Raising ABAP OO events for workflow
    Regards,
    JOy.

  • How to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    how to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    See the below discussion
    How to create and use Webservice controls using WSDL in weblogic portal10.3
    Thanks,
    Venkat Sarvabatla

  • How to create and use dynamic queue in JMS

    Plz tell me how to create and use a dynamic queue in jms and can reciever file lookup it as it lookup any server configurred queue(written in the server).

    Hi,
    We can use Azure File services to do this, for more information, please have a look at this article:
    http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx. The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between
    VMs using standard and familiar file system APIs like ReadFile and WriteFile.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Requesting all to help me how to create lsmw using idoc method

    hi
    thanx for ur answer
    requesting every body in the forum to help me how to create lsmw using idoc method.
    regards,
    balaji

    Hi Balaji,
    LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
    Hope this is what you are looking for. If helpful then don’t forget to reward me for that
    Darshan

  • How to create database using shell script

    hai
    how to create database using shell script

    The documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220

  • How to create indexes using CREATE TABLE statement

    Hi,
    Can anyone please tell me how to create indexes using CREATE TABLE staement? This point is part SQL Expert exam (1Z0-047) and please guide me to use which books for this particular exam.
    Thanks in advance.

    Can anyone please tell me how to create indexes using CREATE TABLE staement?e.g. creating a primary key or a unique constraint will generate indexes along with the create table syntax:
    SQL> create table t (a integer primary key, b integer unique)
    Table created.
    SQL> select   index_name, index_type, uniqueness
      from   user_indexes
    where   table_name = 'T'
    INDEX_NAME                     INDEX_TYPE                  UNIQUENES
    SYS_C0016575                   NORMAL                      UNIQUE  
    SYS_C0016574                   NORMAL                      UNIQUE  
    2 rows selected.

  • How to create crossword using Adobe captivate

    how to create crossword using Adobe captivate

    OK.  Again I am not needing clarification here.  Did you INSERT the SWF as an animation into the Captivate project? Or, did you keep the SWF as an external file?  If the SWF is external to the main Cp SWF then perhaps it's not working when you publish because the content cannot find the SWF.  If you have made sure that the SWF is definitely in the publish location, check whether or not you have that location set as a trusted location in your Flash Global Security settings.

  • How to create Contract or Move-in using Function module

    Hello Gurus,
    I'm looking for a way to create contract(Move-in) using Function module.
    Please help me out...
    Thanks in advance,
    Rajesh

    Hi Rajesh,
    Please try this: BAPI_ISUMOVEIN_CREATEFROMDATA
    Regards,
    S

  • How to create Contract in SAP backend systems( R/3)

    Hello All,
    We have SRM4.0 with classic scenario. We don't have sourcing cockpit , bidding engine and all activated.
    Please suggest me, how can I create contract in backend system?
    We don't want to create GOA in SRM system and distribute it to backend system.
    Regards
    Neelesh

    Hi Neeleesh,
    Go through the GOA setup in the <a href="https://websmp205.sap-ag.de/~sapidb/011000358700002897362004E/CG_Sourcing5.pdf">Strategic Sourcing Configuration Guide</a>
    In the web GUI you can use the transaction BBP_CTR_MAINCC to create the Global Outline Agreement
    Note 646903 is also useful.
    Hope this helps.
    /Kristoffer

  • How to Create Contract Accounts through Data Conversion?

    What would be the best solution to use to create Contract Accounts from legacy data?  I am weighing the options of using LSMW and Emigall.  How would you weigh these options based on ease of use and performance?
    Thanks,
    Jeremy

    Hi Jeremy.
    Another option that I have used is the use of a start routine program that creates the master data on the fly.  Essentially, you create an internal table in the form of the master data or text table.  Then you call the function RSDMD_WRITE_ATTRIBUTES_TEXTS.  The code would look something like
    DATA: lt_text_data type standard table of /BIC/TZIOBJ,
              ls_text_data like line of lt_master_data.
    loop at DATAPACKAGE.
         ls_text_data-ZIOBJ = DATAPACKAGE-field.
         ls_text_data-ZATTR = DATAPACKAGE-text.
         appens ls_text_data to lt_text_data.
    endloop.
    call function 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
         exporting
               i_iobjnm = 'ZIOBJ'
              i_tabclass = 'T'
          tables
              i_t_table - lt_text_data.
    Hope that helps.
    Adam

  • How to create repository using a view in OBIEE

    Hi,
    Can any one explain the procedure how to create a repository using a view. For example
    test_v
    select a.col1,a.col2,b.col1,b.col4,c.col5,c.col6 from table a,table b, table c where a.col1= b.col1 and b.col1 = c.col1
    1. Assuming that i have imported only one view.
    Thanks and Regards,
    Hanuman.

    Hi,
    You can create the vie in the physical layer of your repository, select "Select" from the dropdwan box when you create a new table. Next add the columns. They must have the same names as in your view.
    If you don't have any other tables in your repository, created an alias of your view and make a "dummy" join with the original view. Next create your BM and PL.
    regards
    John
    http://obiee101.blogspot.com/

Maybe you are looking for

  • Error when starting Adobe Bridge

    Everytime I start Adobe Bridge I get a "Adobe Bridge has stopped working" error message.  I have tried uninstalling all of my Adobe apps and reinstalling them.  I have tried launching holding the ctrl key and still get the same error.  I have updated

  • Use If then else statement to display concatenated values

    Hi, I am trying to create a field which will display 2 different names depending on the status of another field. Here is the code I have but it returns no data when I try it: <?xdofx:if ReportStatus='Approved' then concatenate(DisplayFirstName, Displ

  • My iTunes is no longer able to broadcast radio streams

    Until recently, I've been able to stream radio successfully through iTunes and my old G4 Notebook.  The music plays through ceiling speakers in the house.  Recently we installed a new modem from Time Warner and my iTunes is no longer able to broadcas

  • How to change the text of label dynamically

    Hi all, I have done a dynpro program.It requires to implement the dynamically display the label text, for example: there is a label, sometimes, we want to display "Purchase Order" and sometimes we want to display "Sales Order". Can anyone tell me how

  • OIM11g: Is there a way to find out what method is used to create user

    Hello, I have a user pre-create event handler that gets called every time a user is created in OIM. In here, is there any way to find out if the user is created by self-service request, admin, or by an external client that used UserManager API? How c