Function module - Create Customers in ERP

Hi Gurus,
I am working on an implementation of ISA for ERP and I need to create customer in ECC 6.0 from a web page that will be included in the ISA application.
Can anybody suggest me a standard function that can be leverage for this purpose?
Thanks in advance.

Thanks again Cristoph.
Sorry, but I have another question. what I am trying to do is giving the possibility to the agent of a B2B Order On Behalf scenario to create a customer on the ERP (ECC 6.0) (when the customer itself is not created in the master data yet) directly from the ISA application (maybe adding a custom page that is calling a function module directly on ECC).
Since I know that in this kind of scenario the standard is not covering this requirement, I was wandering whether you knew a "workaround" or a re-usable solution that I can leverage to satisfy the requirement.
I would appreciate a lot any help you might give me.
thanks a lot!

Similar Messages

  • Function module create inbound delivery with text

    Hello
    I'm trying to create an inbound delivery with reference to a purchase order and create additional texts. I found FM GN_DELIVERY_CREATE but the texts are not added. I entered data in table IT_GN_TEXTL & IT_GN_TEXTH.
    What can be the problem?
    KR

    We will solve it with some extra development.
    As we do not have the parameter IS_BORGR_CONTROL-SAVE_TEXTS = 'X', I compared the version of ECC 6.0 to the 4.7. In debugging, we just have to pass one check and it will work. We will create a own version of gn_delivery_create with one extra parameter and put this parameter where it is added in Ecc 6.0.
    Check:
    if v50agl-create_decentral ne space
        or v50agl-create_uclief     = 'X'.
    KR

  • How to create a generic datasource from function module?

    Dear experts,
    I have created a generic datasource from function module. For this extrator, I created a function module and a structure.
    I have now some difficulties to continue:
    In this function module, i get data from different transparent tables. Then i put these data into an internal table.
    I just don't know what is the relatioin between the structure i defined and this internal table.
    I should make "iTab structure AA" in the source code?
    Thanks

    Hi..
    check this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    1. Create s structure with the fields that you need from the 4 tables . Activate.
    2. Goto SE 80 Select The Function Group , Copy , Select the Function module
    " RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
    Y or Z .
    3. SE37 ->Your Function module name -> Change , In table tab give your structure
    name by deleting the associated type given in " XXXX " .
    4. Now select source code and Do the coding . Give Data source name in Coding .
    In your case you have to take data from more that 1 table .
    5. Activate the Function Group .
    6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
    7. RSA3 -> Give data source name and Check for the Records .
    Creation of custom datasource. (Using function module)
    .Create a function group .
    . Structure ZTXXXX
    Create function module (i.e. ZTESTXXX) .
    . Create the data source using transaction (RSO2).
    . If structure exists for the table parameter of your function module then ok else create a structure for the table parameter ‘        ’.
    Test the datasource in R/3 using transaction RSA3.
    Transfer the data source to BW –System and replicate it in the BW-System.
    Message was edited by:
            shiv

  • Error in Functional module calling from XI!!!

    Hi All,
    I'm using XI to pick data from ORACLE write it in SAP and take the response from SAP and write it back in ORACLE database. I'm using a custom functional module in SAP and calling it from XI .
    The custom functional module create the CUSTOMER and ORDER .
    Customer is getting created in SAP but order is not created. We are using two different functional modules for customers and orders.
    The above functional modules are executing in SAP but while calling from XI only the customer is getting created in SAP.
    Please post your views and suggestions on this issue.
    Thanks in advance.
    LN

    First put the commit work after successfuly executing the order creation in the custom function module.
    If you already put and doesn't know why it is not creating the orders, debug the function module by putting the same data which you are passing from XI in test tab.
    Suppose, the Orders are creating in the dubug mode. Then debug the custome function module dynamically using SM50.
    Regards,
    Krishnaraju.

  • Problem with RFC function module from R/3 to CRM

    Hi, i have a RFC function module created in R/3, this is the code:
    function Z_CRM_PRODUCTO_INTERLOCUTOR.
    ""Interfase local
    *"  IMPORTING
    *"     VALUE(GV_VKORG) TYPE  VKORG
    *"     VALUE(GV_VTWEG) TYPE  VTWEG
    *"     VALUE(GV_MATNR) TYPE  MATNR
    *"     VALUE(GV_KUNNR) TYPE  KUNNR_V
    *"  EXPORTING
    *"     VALUE(GV_KDMAT) TYPE  MATNR_KU
    *"     VALUE(GV_POSTX) TYPE  KDPTX
    *"  EXCEPTIONS
    *"      NOT_FOUND
      UNPACK GV_MATNR TO GV_MATNR.
      UNPACK GV_KUNNR TO GV_KUNNR.
      select single  KDMAT POSTX
              into (GV_KDMAT, GV_POSTX) from KNMT
              where   VKORG = GV_VKORG
                      and  VTWEG = GV_VTWEG
                      and  KUNNR = GV_KUNNR
                      and  MATNR = GV_MATNR.
      IF sy-subrc <> 0.
        RAISE NOT_FOUND.
      ENDIF.
    endfunction.
    When i call this function from CRM, i do it like this:
    CALL FUNCTION 'Z_CRM_PRODUCTO_INTERLOCUTOR'
      DESTINATION LV_RFCDEST
      EXPORTING
        GV_VKORG  = lv_vkorg
        GV_VTWEG  = ORGMAN_H-DIS_CHANNEL
        GV_MATNR  = ORDERADM_I_WRK-ORDERED_PROD
        GV_KUNNR  = WA_DATOS_PER-N_PAGADOR
      IMPORTING
        GV_POSTX  = IT_POS_LINE-DESCRIPCION
        GV_KDMAT  = IT_POS_LINE-material
      EXCEPTIONS
        not_found = 1.
    where:
    it_pos_line-descripcion type string
    it_pos_line-material type string.
    Well, my problem is that when debugging, in R/3 the 2 return values have the correct value, but when they are passed to CRM they have only one position.
    As i've been told, it was working ok, but it's being wrong since we made a ¿conversion to unicode?. Maybe I should change the type of return ???
    Thanks in advance !!!

    Hello Maria,
    Make sure you define your parameters in CRM exactly the same way as in R3, do not use type string here.
    So:
    it_pos_line-descripcion type C char 40,
    it_pos_line-material type C length 35.
    Kind regards,
    John.

  • Remote function module to wait untill the response came from webmethods

    hi all.
    here i have got a situation that the remote function module created in SAP-R/3 to wait untill the response came from webmethods :
    i have created the remote function module by assigning one structure in tables(tab) and 3 parameters in changing tab just to collect the messages return from webmethods
    so this rfc will be called by webmethods and pick the structure data and then it wll return 3 variables back to rfc.
    here the rfc need to wait untill the response came from webmethods.
    so can any body suggest me on what source code do i need to write in RFC

    Hi Naina,
    Normally RFC are synchronous, they do have return parameter as export parameter.
    If return parameter is missing then , you can create Wrapper RFC.
    Wrapper RFC:
    It is nothing but you just  create BAPI in SE37 transaction with Return parameter as export parameter and make it remote enabled by clicking on Radio button.
    Under source code, CALL BAPI which XI has to call.
    Thats it!
    I hope this helps.
    Let me know if any help required.

  • Can anyone tell me steps to be taken while modifying a function module exit

    Hi guys,
    I have to make little changes to function module exits in a project .
    what are the necessary steps i need to take make the changes and make them work.
    Thanks,
    Venkat

    1.  Create a project in CMOD
    2.  Assign the exit definition name (From SMOD)
    3.  Select the function module you would like to implement from the components screen
    4.  Double click on the include name within the function module, create the include if not already created
    5.  Add your code to the include program
    6. Save and activate your code
    7.  Save and activate your CMOD Project
    Best Regards,
    Chris H.

  • How to get a pdf-document out of a function module

    hy,
    we want to create a wd-application which imports a function module. The function module creates a pdf-document. We are planning to deliver the function-module output as a table to webdynpro. The table includes the pdf-document.
    How can we display this pdf within the browser ?

    Hi,
    at first your Function Module should deliver your PDF as an XSTRING in ABAB.
    This is mapped to a byte[] in Java Model. This byte array you can bind for example to a FileDownload Element in the GUI. If you click on it the PDF opens.
    On the context element of type byte[] you have to do the following:
    IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("<byte[]contextElement>");   
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    binaryType.setFileName("<yourname>".pdf");
    binaryType.setMimeType(WDWebResourceType.PDF);
    Then it should basically work
    Frank

  • Function module in crystal reports using tables as input

    We had a function module created with a few import parameters. We successfully linked it in crystal and were able to retrieve the data.
    To accommodate the requirement of being able to pick multiple values for some of the parameters, the import parameters were changed to tables. When testing in ECC, we are able to retrieve the data using the function module.
    However, when we're using the same approach as before in crystal reports, we are not able to retrieve the data.
    Is it possible in crystal to pass the input parameters to tables ?
    Any ideas what I might be doing wrong?
    Thanks,
    Mat

    Hi John,
    The solution is very simple. 
    You create a function module in ECC (t-code SE37) that will receive you input parameters, process them, and export a table with your results.
    In the function module you define an input parameter using a CHAR120 data type (ex. PERNR).
    In the function module source code you add logic to split the input parameter
    [SPLIT i_PERNR AT ',' INTO TABLE itab_PERNRS.]
    You then create a crystal report against your function module.
    In your crystal report you create a parameter using type "string" (ex. I_PERNR).
    When you execute the crystal report, you input a comma delimited string in the parameter.
    [00001234,00005678,00009123]
    The function module will receive the string of values, split the string to an internal table, and process accordingly.
    I still have no solution for the 120 character restriction in the CR->ECC interface.  In the meantime, I get around this by creating multiple parameters (PERNR1, PERNR2, PERNR3, etc.). 
    Each parameter is set up to pass a string of 120 characters to ECC.
    The function module is set up to concatenate the parameters before splitting.
    [CONCATENATE PERNR1 PERNR2 PERNR3 into I_PERNR]
    Hope this helps.

  • Function Module not getting called

    Hi Experts,
    I am calling a Z function module created by me like this:
    When I do F5 while debugging, the debugger does not enter the FM at all.
    CALL FUNCTION 'ZZBAPI_BUPA_ROLE_ADD' IN UPDATE TASK      
            EXPORTING
               businesspartner                = ls_but000-partner
               businesspartnerrole            = 'BUP002' .             "Prospective Customer/Prospect
    It is working in sandbox system but is not working in development system.
    I have put the same attribute in processing type as update module and start immediately in the attribute section of the FM. I have also activated it but it is not working in development system.
    Can anybody tell me the fix for this problem?
    Regards,
    Sangeeta.

    Hi Ankur,
    I have explictely specified commit work after the FM in update task call but it is throwing dump.
    This particular code which I have mentioned above is working in sandbox but not in development.
    Also, since I am doing from Web UI, so I have put external debugging. When I am trying to save the particular update setting in debugging which you  need to debug this kind of FMs, it is not working.
    Regards,
    Sangeeta.

  • ALE custom function module for IDOC_INPUT_COSTCENTER

    We are setting up an ALE to update cost centers in our HCM system from our ECC system.  In conjunction with the cost center update I need to convert the company code (it's not straight-forward enough to use a conversion rule) so I have created a custom copy of IDOC_INPUT_COSTCENTER and included my conversion logic there. 
    I have done all of the necessary configuration steps associated with the custom function module; created message type ZCOSMAS, process code ZCOSM, etc.  When I execute BD16 it is passing the correct message type and process code to the HCM system but I am getting a status 51 'Function module not allowed: IDOC_INPUT_COSTCENTER'.
    I must be missing some piece of configuration in my HCM system that should trigger Z_IDOC_INPUT_COSTCENTER rather than IDOC_INPUT_COSTCENTER.  Can anyone tell me what I have missed?
    Thanks in advance for any assistance you can provide.
    Regards,
    Pat
    Edited by: Patricia Holland on Dec 22, 2011 2:38 PM

    I thought that I had found found my problem in the model view but I was mistaken.  I am still getting status 51 'Function module not allowed: IDOC_INPUT_COSTCENTER'.
    It should be using Z_IDOC_INPUT_COSTCENTER.
    Edited by: Patricia Holland on Dec 22, 2011 3:00 PM

  • Call RFC function module

    Hi all,
    i try to call a remote enabled function module via rfc from erp to apo.
    CALL FUNCTION 'Z_XXXXXXXXXXXX
            DESTINATION XXXXX
            EXPORTING
              wa_truid = it_tab_pre-trguid
            IMPORTING
              status   = wa_status.
    In debugging the parameter it_tab_pre-trguid is filled correctly (in ERP).
    But in APO the field is empty.
    Any ideas?
    regards

    Hi!
    Calling an FM with RFC means, you just simply run it on their system with giving  some parameters to it.
    It will use the remote database to select data.
    Log into the APO system and run the FM there, with the same parameters, and you'll see, what's wrong.
    Regards
    Tamá

  • BAL_LOG_MSG_CUMULATE.. use of Function module?

    Hi,
    Thanks for spending the time on this Query.
    I need to use this fn.module(BAL_LOG_MSG_CUMULATE). This fun.module is to get cumulating value and this value put into MSG_COUNT in the structure BAL_S_MSG while adding the messages to the log header using the function module(BAL_LOG_MSG_ADD). If I am using the 'cumulate' fn.module What is the major difference while I am adding the messages in the Application log?
    If I am not filling the values in the field 'MSG_COUNT', but messages are added smoothly to the log header.  So, I didn't get what is the use of the Cumulate function module.
    I have very less time to analyses this issue so that, I need to use your time to find out the issue.  Thanks in advance for the advisors.
    Plz advise what is the scenario to use this fun.module?
    Thanks,
    Sridhar Choda.

    this function module creates a message containing whatever text you want but only upto a limit of 200 characters. Actually it cheats the system by creating a message and breaking up the free text into 4 chunks of 50 charatcers, 1 chunk for each of the 4 symsgv variables. It uses message class BL and message 001 which is defined as & & & &, so it's completely free-format.
    If you want to have a bigger field you'll need to use another technique altogether.

  • Function module for OUtbound DESADV01

    Hi,
    Can anyone tell me which function module to be used for OUtbound DESADV01 which i will be using for ASN. In addition to this, please let me know which procesisng code will be used.
    Can anyone please share the code for writting a funciion module in case I have to write custom FM.
    Regards
    Rinku
    Message was edited by:
            Rinku Malik

    Hi,
    Create a new function group from se37.
    From the menu Goto --> Function group --> create group
    Copy the function module IDOC_OUTPUT_DESADV01 into ZIDOC_OUTPUT_DESADV01 function module. Add your code in the function module.
    create a new Z Process code ZSD05 in we41 tcode and attach the function module
    ZIDOC_OUTPUT_DESADV01 to the process code.
    In tcode we57 attach the function module to the idoc type and message type.
    Regards
    Arun

  • Function module to create a CS order from external system

    Hello,
    i´m setting up a prototype for customers service (CS).
    My goal is to create the CS order automatically from a external system where i have all the required data.
    Is there a function module or something in SAP ERP which i can use to create the CS order in background?
    Thank you.
    Best regards
    Manfred

    Hello Amit,
    the requirement is the following:
    we have a SAP CRM System where we create Servicetickets.
    This tickets contain the following data which are also from interest for the CS Order:
    - Customer data
    - Equipment
    - Shorttext
    The goal is to create as follow up for the SAP CRM Serviceticket not a SAP CRM Serviceorder but a CS Order in ERP.
    All data which can be used from the ticket should be used - all further data should the user add to the CS Order manually.
    Thank you for your ideas.
    Best regards
    Manfred

Maybe you are looking for

  • Please can anyone help. I am trying to reconect wirelessly my Macbook pro laptop to a canon mp600r printer ?

    HI.Can anyone help please. I'm trying to wirelessly reconect my Mac book pro laptop to my canon mp600r wireless printer. I had it working once but after having secured my linksys router ( set a password ) it no longer conects wirelessly but it works

  • What's with the beach ball of death?

    I see it more frequently than when I first purchased my macbook.  Don't get me wrong, I love my mac and it's still faster than anything out there but why does it appear more than before especially when using Mail, iPhoto, and especially iTunes?

  • Default file opener?

    This questions involves all of the iWork '08 applications. How do I set these applications to be the default application for opening files sent to me? In other words, when I receive a .ppt file and double-click to open, my computer uses Adobe to atte

  • How to abort failed music download?

    I love getting the free music download cards from Starbucks, but recently one failed to download. Under the download section on itunes it says +*"Download error. Tap to retry"*+ but when I tap it starts to download for a second and goes right back to

  • Rented dvds not working

    hi, i really dont know much about computers, and i thought an apple would be a piece of cake. i do love my laptop, BUT... when i rent dvds at blockbuster or netflix, they dont play on my computer. i recently had my optical drive replaced, but still t