How to create a partner and header record using CRM_ORDER_MAINTAIN?

Hi any one knows how to create a partner and header record using the function module CRM_ORDER_MAINTAIN??
I tried to  create a record, but i only managed to create a header record and the partner record is not reflected in the transaction.  Why is that so? is there any indicator that i need to include?
Thanks..
Jen

Hi Jen!
I use this FM and it works perfectly.
Use this to create a partner:
  gs_partner-ref_handle    = '0000000001'.
  gs_partner-ref_kind      = 'A'.
  gs_partner-ref_partner_handle = '0001'.
  gs_partner-partner_fct   = '00000001'.
  gs_partner-partner_no    = NO_PARTNER. "number of the partner, bu_partner
  gs_partner-display_type  = 'BP'.
  gs_partner-no_type       = 'BP'.
  gs_partner-kind_of_entry = 'C'.
*  ls_partner_l-ref_handle    = '1'.
  gs_partner-ref_guid      = '00000000000000000000000000000000'.
  APPEND gs_partner  TO gT_partner .
  ls_input_field-ref_kind  = 'A'.
  ls_input_field-logical_key   = '0001'.
  ls_input_field-objectname  = 'PARTNER'.
  ls_input_field-ref_handle  = '0000000001'.
  ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
  INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
  ls_input_field_names-fieldname = 'KIND_OF_ENTRY'.
  INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
  ls_input_field_names-fieldname = 'NO_TYPE'.
  INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
  ls_input_field_names-fieldname = 'PARTNER_FCT'.
  INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
  ls_input_field_names-fieldname = 'PARTNER_NO'.
  INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
  INSERT ls_input_field  INTO TABLE  gt_input_fields.
  clear ls_input_field-field_names[].
  CALL FUNCTION 'CRM_ORDER_MAINTAIN'
  EXPORTING
*    it_schedlin_i   = gt_schedlin_i_com
    it_partner      = gt_partner
*    it_sales        = gt_sales
*      it_orgman       = gt_orgman
*      it_appointment  = gt_appointment
*      it_ordprp_i     = gt_ordprp_i
*   it_product_i    = gt_product_i
*      it_activity_i   = gt_activity_i
*      it_pridoc       = gt_pridoc_com
  CHANGING
    ct_orderadm_h   = gt_orderadm_h
*   ct_orderadm_i   = gt_orderadm_i
    ct_input_fields = gt_input_fields.
*      ct_doc_flow     = gt_doc_flow
*      cv_log_handle   = gv_log_handle.
Hope it helps u,
Regards,
Mon.

Similar Messages

  • How to create snapshot portlet and snapshot query using server API

    How to create snapshot portlet and snapshot query using server API
    Regards
    Dheeraj

    Hi Sebastian,
    I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
    RehaanKhan. M
    see the method discussed here
    http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to create sine wave and step input using cwgraph in VB 6.0

    hello..
    i'm doing my master's project now. i'm stuck on how to create a sine wave and a step input using the cwgraph using VB 6.0. please help. thanks.

    hello..thank for the reply.
    i'm having problem with my coding using cwgraph. can anyone help. everytime i do the full compile, there's error.but it can still can run, but can't convert to application form.for your info, i'm using RTscope and cwgraph to plot graph.the error is in the cwgraph coding.below are part of the coding with error. and can somebody tell me how to add cwgraph component in the VB? i try adding component, but it's not in the list of component,and i've browse for it already too.i'm doing the software at home, but i'can run it at my lab cause cwgraph component is not listed.please help.
    Dim countTime As Integer, count1 As Integer, countFreq As Integer, countVolt As Integer
    Private Sub cmdRun_Click()
    If cmdRun.CausesValidation = True Then
    cmdPause.CausesValidation = False
    tmrOsc2.Enabled = True
    tmrOsc3.Enabled = True
    Else
    cmdPause.CausesValidation = False
    tmrOsc2.Enabled = False
    tmrOsc3.Enabled = False
    For count1 = 0 To 100
    Data1(count1) = 0
    Data2(count1) = 0
    RT1.Value(1, count1) = 0
    RT1.Value(2, count1) = 0
    RT1.Refresh
    CWGraph2.Plots(1).PlotY count1 ' THIS CODING HAS AN ERROR ...
    CWGraph2.Plots(2).PlotY count1 ' THIS CODING HAS AN ERROR ...
    Next count1
    End If
    End Sub

  • How to create  Service Order  and then Invoice    using   IW31

    I  have  problem  to create   Service Order  and  then Billing,
                   could  anyone tel me ,what is process  flow.
    Thanksa in Advance.

    Hi Suniel,
    PLease take a look at:
    Re: Problem  to create  Service Order  using   IW31 and  then Invoice  for that
    Best regards,
    demas

  • How to create a template and child pages using mockup designed in Fireworks

    I have created a website in Fireworks, and exported it to use in Dreamweaver.  How do I use the Master page in Fireworks as my template page in Dreamweaver?  When I bring in the .htm files from fireworks, it tries to bring in the entire page.  I have taken 25 hours of online training for Fireworks and Dreamweaver through Lynda.com, but there is not a specific video that tells you how to get your website from Fireworks into Dreamweaver if you want to utilize the Template and child page features.

    Use Fireworks to crop, slice and optimize images only.  DO NOT allow any graphics app to generate your HTML code for you.  This results in poorly formed code and rigid layouts that invariably fall apart when you attempt to edit them in DW.  Fireworks / Photoshop generated pages are for quick prototypes or design comps to show the client.  They do not work well on production sites.
    Taking a Fireworks comp to a CSS Layout in DW
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    DWT Template Basics -
    http://forums.adobe.com/message/2926278#2926278
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Re : Hw to create a table and insert records using procedures

    Hi..
    I tried to run a procedure to create tables but is givin an error message "insufficient previlages" and when i tried to run it using a anonymous block i can create the tables..so can any one help me to resolve this issue.
    Thanks in advance.
    balveer.

    You don't have the privilege on creating the procedures. Hence you are not able to create tables through procedures. where as you can create table from anonymous blocks..

  • How to create remote monitor and control webpages using cFP2220

    Hi all,
    I'm fresh user using compact field point. I would like to make cfp2220 as a web server, so other PCs can using IE to monitor and control through web browser.
    Moreover, does the webpages support security? and how to setup?
    Thanks,
    Regards,
    Robert

    Hi Robert,
    You can use LabVIEW Web Services to set up a system like you describe, and there is also information available on how to secure your Web services.
    I hope this is helpful.
    Regards,
    Stephen S.
    National Instruments
    Applications Engineering

  • New user created. How to create Central Person and Business partner

    Hi,
    I got a new users created in SRM 5.0 .how to create Central person and business partner.
    Without CP & BP we cannot work. please guide.
    Regards
    G.Ganesh Kumar

    HI GANESH
    As you aware , assign the user to organisation structure via users_gen , the system will create a BP and Central Person , Position and user for you.
    br
    muthu

  • How to create Business partner from uploaded file by Function module?

    Hi Experts,
    I have uploaded Business partner data from a file to server now from individual records I have to create Business partner and have to update the records in the tables. Means from on record i have to create one business partner in sap system.
    I have uploaded the records in the system and stored in a internal table.Now my task is to create business partner and have to update tables.
    I need a function module which create BP by each records uploaded and update the respective tables of BP and exports business partner ID.
    Please respond soon Its a requirement form the client.
    Prem.

    HI,
       You can use the bapi 'BAPI_BUPA_CREATE_FROM_DATA' to create a business partner .
    call function 'BAPI_BUPA_CREATE_FROM_DATA'
              exporting
                businesspartnerextern              = g_bpartner-partn
                partnercategory                    = partnercategory
                partnergroup                       = partnegroup
                centraldata                        = centraldata
                centraldataperson                  = centraldataperson
                centraldataorganization            = centraldataorganization
    *       CENTRALDATAGROUP                   =
                addressdata                        = addressdata
    *       DUPLICATE_MESSAGE_TYPE             =
    *         IMPORTING
    *            BUSINESSPARTNER                    = G_BPARTNER-BUSINESSPARTNER
             tables
                telefondata                        = telefondata
                faxdata                            = faxdata
                e_maildata                         = e_maildata
                return                             = return
    *       ADDRESSDUPLICATES                  =
                addressnotes                       = addressnotes.

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr,
    Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do?
    Please kindly advise.
    THnak you and best regards,
    Vimol

    Dear Shobhit,
    How to put the thread as you mentioned.
    Best regards,

  • How to create portal user and integrate with external appl login

    How to create portal user and integrate the user with external application for single sign-on ?
    I want to access my external application thru portal user ..?
    Shyam

    Hi Jithin,
    The link that you've shared talks about a different scenario.
    In my case, I want to pass the portal user id when the user clicks on the Help Link present in the header area.
    I am trying to pass it along with the Help Link Url property of a masthead iview but it is not getting passed to the target Url.
    I would like to know if it is possible to pass the Portal User Id in this way or not.
    Though if we create a appintegrator iview and pass the user id <User.UserID> along with the target Url, it reaches there.
    Thanks & Regards,
    Anurag

  • How to create Trading partner in 4.6c

    Hi,
         Can you please let me know how to create Trading partner in SAP 4.6c. Please let me know the difference in creation of Trading partner in sap ECC 6.0
    Thanks,
    RajaGopal

    Hi ,
    In order to identify Inter Company transactions Trading partner field is used. You need to define all the Group Companies as company in SAP and all the defined Companies will be available for selection in Trading partner field.
    The same can be done via
    SAP IMG > Enterprise Structure > Definition > Financial Accounting > Define Company
    Hope it helps
    SJ

  • How can i create a new and tableless database using database configuration

    How can i create a new and tableless database using database configuration

    How can i create a new and tableless database using database configuration
    Just don't install the sample schemas. See the installation guide
    http://docs.oracle.com/cd/E11882_01/server.112/e10831/installation.htm
    Using the Database Configuration Assistant
    When you install Oracle Database with the Oracle Universal Installer, the sample schemas are installed by default if you select the Basic Installation option. Selecting the sample schemas option installs all five schemas (HR, OE, PM, IX, and SH) in the database. If you choose not to install the sample schemas at that time, you can add them later by following the instructions in section "Manually Installing Sample Schemas".
    Choose a custom install and don't install the sample schemas.
    All other schems/tables installed are REQUIRED by Oracle

  • How To Create A Technical And Business Systems For Web AS ABAP ???

    Hi Experts,
    How To Create A Technical And Business Systems For Web AS ABAP ???
    Please Let me Know All the Step-By-Step Process to Create ????
    Points Will be Given
    Regards
    Khanna

    Hi Sumit,
    When U Told the thing that first time to execute the RZ70 and All i Did this in XI System
    So I got An Entry for the Technical System for XI System.
    Now i Deleted that and Executed RZ70 in R/3.
    When I Executed RZ70, I got this Error.
    <b> "RFC Call failed: Error Opening an RFC Connection "</b>.
    Now I am Unable to see Any Technical System  Under Web As ABAP. It's Showing Empty Now.
    Please Let me know
    Regards
    Khanna

  • How to create business partner temblet

    Dear friends,
            how to create business partner temblet .
      please send the following mail address
       [email protected]
                      Thangs in advance
    Regards,
    S.Siva

    hi
    Refer to the links below might get u some info
    General Business Partner-initial screen
    http://help.sap.com/erp2005_ehp_02/helpdata/en/39/0b77a9df3011d189fc0000e829fbbd/frameset.htm
    Business partner as Template
    http://help.sap.com/erp2005_ehp_02/helpdata/en/2f/3a2a09969611d2ac750000e829fbfe/frameset.htm
    Business Partner
    http://help.sap.com/erp2005_ehp_02/helpdata/en/43/a0dfe510d825e5e10000000a1553f7/frameset.htm
    Creating or Changing Master data Template
    http://help.sap.com/erp2005_ehp_02/helpdata/en/c7/adcef39296f94e8ef7077ce160200e/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/57/92f63aad7e3014e10000000a11402f/content.htm
    http://b1up.net/index.php?id=modules
    Reward if USeful
    Thanx & Regards.
    Naren..

Maybe you are looking for

  • Tips for Changing Flash Website to HTML / Dreamweaver

    I am going to be taking over the management of a website that was designed entirely in Flash. There really is no need for the entire website to be entirely in Flash - it is confusing to navigate and most of the content would be so much easier to upda

  • How to map data in xml format to BAPIs tructures?

    A webservice call to an external system from XI, is returning data to XI in xml format. This needs to be formatted to map to the structure of BAPI from SAP. I searched and found several threads pointing to do transformations. But I am not sure where

  • Paste function grayed out

    Hi I am working on a survey using Adobe FormsCentral, purchased version (not the free version). Previously i was able to copy or cut, and paste portions of my form to new areas. Today the paste option is grayed out. If i click cut, the element i atte

  • Enable "dynamic date calculation" variable type

    When saving reporting date/period in a report variant, we may use "dynamic date calculation" to specific date as selection parameter.  But the "Dynamic date calculation" is not visible in some ABAP reports - only "Table Variable from TVARVC"  type is

  • ORA-06508 Solution for attached libraries

    If you are getting the ORA-06508 runtime error, it may be the result of a corrupted .pll file. You can solve this by doing the following: 1) Remove the attached .pll file from the form. 2) Verify whether the refrenced objects in the form from the .ol