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?

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[].
*    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
    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,

Similar Messages

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

    How to create snapshot portlet and snapshot query using server API

    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
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    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

    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
    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
    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,

  • 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, 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
    Part 2 - Markup preparation
    Part 3 - Layout and CSS
    DWT Template Basics -
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists

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

    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 can any one help me to resolve this issue.
    Thanks in advance.

    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?

    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.
    Stephen S.
    National Instruments
    Applications Engineering

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

    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.
    G.Ganesh Kumar

    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.

  • 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.

       You can use the bapi 'BAPI_BUPA_CREATE_FROM_DATA' to create a business partner .
    call function 'BAPI_BUPA_CREATE_FROM_DATA'
                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
                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,

    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 ..?

    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,

  • How to create Trading partner in 4.6c

         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

    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

  • 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
    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

    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

  • 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

    Refer to the links below might get u some info
    General Business Partner-initial screen
    Business partner as Template
    Business Partner
    Creating or Changing Master data Template
    Reward if USeful
    Thanx & Regards.

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