Function Module to Insert Agent assignment upon creation of Responsibility

Hi Friends,
Using BDC I am able to create Resposibilities in Responsibilities tab of PFAC tcode.
I need to insert Agent assignment under created Responsibility.
Actually In Tcode PFAC I enter Rule then select change button this will lead us to next screen there i select Responsibilities tab
there I select create button then it will give a pop-up in that i will enter Object abbr. and Name then i will select continue.
then next i will enter category then select save.
Up to this using recording I am able to create Responsibilities but here i need to come back and i need to select just now created
Responsibility and i need to select insert agent assignment icon then it will give popup there i need to select Orgnizational unit then continue then it will give small popup ther i need to give search term (what ever we entered in Object abbr.) then continue again one popup will come ther we need to select that Org.unit check box then continue then it will one more popup there i need to select create then it will be inserted under Responsibilitty.
In the above entire explanation I am able do upto  create Responsibilities but to insert agent assignment we need to come back after save but it is not possible through Recording because after save Recording will be ended.
So could you please guid me how to insert agent assignment under just created Responsibility.
If there is any function module to do that please suggest me .
Thanks
Chandu

Hi,
I tried like that also.
Whenever we need to insert agent assignment under just created Responsibility we need to select just created responsibility
created by first BDC . But in seccond BDC WITH TCODE OOCU_RESP Recording is not capturing that action (selecting just created Responsibility).
It is giving the message 'You did not select a valid object' in the status bar.
So It is unable to insert agent assignment under responsibility.
I think there would a function module which insert agent assignment under selected responsibility.
If anybody knows please suggest me or am I making any mistake ?
If you would like to see my code pls find below.
*& Report  YCRM_CREATE_REPBLT_AGENT
REPORT  ycrm_create_repblt_agent.
*Selection Screen
PARAMETERS : p_rule TYPE pdtask-seark OBLIGATORY,
             p_file TYPE rlgrap-filename OBLIGATORY.
*Data Declarations
TYPES : BEGIN OF ty_resp,
        short    TYPE p1000-short,
        stext    TYPE p1000-stext,
        category TYPE ro_expr, "EDIT_BIND_DEF-EXPR_LOW(02),
        END OF ty_resp.
DATA : it_resp TYPE TABLE OF ty_resp,
       wa_resp TYPE ty_resp,
       p_file1 TYPE string.
DATA : it_bdcdata    TYPE TABLE OF bdcdata,
       wa_bdcdata    TYPE bdcdata,
       it_bdcmsgcoll TYPE TABLE OF bdcmsgcoll,
       wa_bdcmsgcoll TYPE bdcmsgcoll.
*Constants Declarations
CONSTANTS : c_x        TYPE c VALUE 'X',
            c_tcode(4) TYPE c VALUE 'PFAC',
            c_mode     TYPE c VALUE 'A'.
*AT SELECTION-SCREEN event for providing f4 help for input file
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  PERFORM file_on_f4.
*Start of selectin event.
START-OF-SELECTION.
File Upload
  PERFORM upload_file.
*BDC Logic
  PERFORM bdc_to_create_rep.
*&      Form  BDC_DYNPRO
      text
     -->P_0061   text
     -->P_0062   text
FORM bdc_dynpro  USING    fp_program "value(p_0061)
                          fp_dynpro. "value(p_0062).
  CLEAR wa_bdcdata.
  wa_bdcdata-program  = fp_program.
  wa_bdcdata-dynpro   = fp_dynpro.
  wa_bdcdata-dynbegin = c_x.
  APPEND wa_bdcdata TO it_bdcdata.
ENDFORM.                    " BDC_DYNPRO
*&      Form  BDC_FIELD
      text
     -->P_0066   text
     -->P_0067   text
FORM bdc_field  USING    fp_fnam "value(p_0066)
                         fp_fval. "value(p_0067).
  CLEAR wa_bdcdata.
  wa_bdcdata-fnam  = fp_fnam.
  wa_bdcdata-fval  = fp_fval.
*WA_BDCDATA-DYNBEGIN = C_X.
  APPEND wa_bdcdata TO it_bdcdata.
ENDFORM.                    " BDC_FIELD
*&      Form  FILE_ON_F4
      text
-->  p1        text
<--  p2        text
FORM file_on_f4 .
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      field_name    = 'P_FILE'
    CHANGING
      file_name     = p_file
    EXCEPTIONS
      mask_too_long = 1
      OTHERS        = 2.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    " FILE_ON_F4
*&      Form  UPLOAD_FILE
      text
-->  p1        text
<--  p2        text
FORM upload_file .
  p_file1 = p_file.
  CALL METHOD cl_gui_frontend_services=>gui_upload
    EXPORTING
      filename                = p_file1
      has_field_separator     = 'X'
    CHANGING
      data_tab                = it_resp
    EXCEPTIONS
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      not_supported_by_gui    = 17
      error_no_gui            = 18
      OTHERS                  = 19.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    " UPLOAD_FILE
*&      Form  BDC_TO_CREATE_REP
      text
-->  p1        text
<--  p2        text
FORM bdc_to_create_rep .
  LOOP AT it_resp INTO wa_resp.
    REFRESH : it_bdcdata,
              it_bdcmsgcoll.
*Screen 0600
    PERFORM bdc_dynpro      USING 'SAPLRHWS' '0600'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'PDTASK-SEARK'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=AEND'.
    PERFORM bdc_field       USING 'PDTASK-SEARK'
                                   p_rule. "'90000159'.
*Screen 0040
    PERFORM bdc_dynpro      USING 'SAPLRHWS' '0040'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=RESP'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'HRS1000-SHORT'.
    PERFORM bdc_field       USING 'HRS1000-SHORT'
                                  'Z99999999972'.
    PERFORM bdc_field       USING 'HRS1000-STEXT'
                                  'Category (RUN -SUPPORT) + C&PS Web'.
    PERFORM bdc_field       USING 'HRS1203-ACTOR_FLAG'
                                  'R'.
*Screen 0040
    PERFORM bdc_dynpro      USING 'SAPLRHWS' '0040'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=INSE'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'DATESET'.
    PERFORM bdc_field       USING 'DATESET'
                                  'O'.
*Screen 0300
    PERFORM bdc_dynpro      USING 'SAPLSPO4' '0300'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'SVALD-VALUE(02)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=FURT'.
    PERFORM bdc_field       USING 'SVALD-VALUE(01)'
                                   wa_resp-short. "'PL-BK'.
    PERFORM bdc_field       USING 'SVALD-VALUE(02)'
                                   wa_resp-stext. "'Plan - BendixKing Team'.
*Screen 0200
    PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0200'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'EDIT_BIND_DEF-EXPR_LOW(02)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=SAVE'.
   PERFORM bdc_field       USING 'P1000-BEGDA'
                             '23.03.2011'.
   perform bdc_field       using 'P1000-ENDDA'
                             '31.12.9999'.
    PERFORM bdc_field       USING 'P1000-SHORT'
                                   wa_resp-short. "'PL-BK'.
    PERFORM bdc_field       USING 'P1000-STEXT'
                                   wa_resp-stext. "'Plan - BendixKing Team'.
    PERFORM bdc_field       USING 'EDIT_BIND_DEF-EXPR_LOW(02)'
                                   wa_resp-category.        "'z11'.
    CALL TRANSACTION c_tcode USING it_bdcdata
                             MODE c_mode
                             MESSAGES INTO it_bdcmsgcoll.
    IF sy-subrc <> 0.
      MESSAGE i001(ymsg)."Error Message
     ROLLBACK WORK.
    ELSE.
      REFRESH : it_bdcdata,
                it_bdcmsgcoll.
**screen 0410
      PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0410'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'P1000-OBJID'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=CHG'.
      PERFORM bdc_field       USING 'P1000-OBJID'
                                     p_rule. "'90000162'.
**screen 0420
      PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0420'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=RELI'.
      PERFORM bdc_field       USING 'DATESET'
                                    'O'.
**screen 0110
      PERFORM bdc_dynpro      USING 'SAPLRHW0' '0110'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=CONT'.
**screen 0100
      PERFORM bdc_dynpro      USING 'SAPLRHWL' '0100'.
*perform bdc_field       using 'BDC_CURSOR'
                             'PCHDY-SEARK'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=CONT'.
      PERFORM bdc_field       USING 'PCHDY-SEARK'
                                     wa_resp-short. "'PL-BK'.
**screen 0120
      PERFORM bdc_dynpro      USING 'SAPMSSY0' '0120'.
*perform bdc_field       using 'BDC_CURSOR'
                             '04/03'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTR'.
**screen 0400
      PERFORM bdc_dynpro      USING 'SAPLRHUA' '0400'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=INSE'.
*perform bdc_field       using 'BDC_CURSOR'
                             'PERIOD-BEGDA'.
      PERFORM bdc_field       USING 'PERIOD-BEGDA'
                                    '29.03.2011'.
      PERFORM bdc_field       USING 'PERIOD-ENDDA'
                                    '31.12.9999'.
      CALL TRANSACTION 'OOCU_RESP' USING it_bdcdata
                                   MODE c_mode
                                   MESSAGES INTO it_bdcmsgcoll.
      IF sy-subrc <> 0.
        MESSAGE i001(ymsg)."Error Message
        ROLLBACK WORK.
      ELSE.
        MESSAGE i000(ymsg)."Success Message
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " BDC_TO_CREATE_REP
Guide me on this.
Thanks

Similar Messages

  • RFC enabled function module for insert update and delete in a Ztable..

    friends..
    Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps..
    what are the import, export parameters and how to develop and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address)
    Thanks and Regards

    Hi,
    Try this code.
    REPORT ZMMC071Z_RMV.
    TYPE-POOLS : ABAP.
    FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
                   <DYN_WA>,
                   <DYN_FIELD>,
                   <LV_CONDI>.
    DATA: DY_TABLE TYPE REF TO DATA,
    DY_LINE TYPE REF TO DATA,
    XFC TYPE LVC_S_FCAT,
    IFC TYPE LVC_T_FCAT.
    SELECTION-SCREEN BEGIN OF BLOCK F1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_TABLE  LIKE DD02L-TABNAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK F1.
    Evento: At Selection Screen                                          *
    START-OF-SELECTION.
      PERFORM GET_STRUCTURE.
      PERFORM CREATE_DYNAMIC_ITAB.
      PERFORM GET_DATA.
    END-OF-SELECTION.
    *& Form get_structure
    text
    FORM GET_STRUCTURE.
      DATA : IDETAILS TYPE ABAP_COMPDESCR_TAB,
      XDETAILS TYPE ABAP_COMPDESCR.
      DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR.
      DATA VL_LENGHT(30).
    Get the structure of the table.
      REF_TABLE_DES ?=
      CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( P_TABLE ).
      IDETAILS[] = REF_TABLE_DES->COMPONENTS[].
      LOOP AT IDETAILS INTO XDETAILS.
        CLEAR XFC.
        XFC-FIELDNAME = XDETAILS-NAME .
        XFC-DATATYPE = XDETAILS-TYPE_KIND.
        XFC-INTTYPE = XDETAILS-TYPE_KIND.
        XFC-INTLEN = XDETAILS-LENGTH.
        XFC-DECIMALS = XDETAILS-DECIMALS.
        APPEND XFC TO IFC.
      ENDLOOP.
    ENDFORM. "get_structure
    *& Form create_dynamic_itab
    text
    FORM CREATE_DYNAMIC_ITAB.
    Create dynamic internal table and assign to FS
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = IFC
        IMPORTING
          EP_TABLE        = DY_TABLE.
      ASSIGN DY_TABLE->* TO <DYN_TABLE>.
    Create dynamic work area and assign to FS
      CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
      ASSIGN DY_LINE->* TO <DYN_WA>.
    ENDFORM. "create_dynamic_itab
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA .
    *Get data from p_table into internal table <DYN_TABLE>
      SELECT * INTO TABLE <DYN_TABLE>
          FROM (P_TABLE)
    Here you can implemente function DELETE, INSERT.
    ENDFORM.                    " De_para

  • RFC enabled function module to insert , update and delete data in a ZTABLE

    friends..
    Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)?
    if not how can we create it? plz give me the details steps..
    what are the import, export parameters and how to code and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address. I need to develop a RFM which does the 3 tasks, insert update delete in the same RFM)
    Thanks and Regards

    create a f.n mod in se37 and make it rfc enabled.  ur import parameters are Emp_Id, Name, Address and TASK and u can have an export parameter like result which gives the status of the update. based on task u can insert using keyword INSERT....and update using UPDATE or MODIFY and delete using DELETE. these keyword are not compelte with syntax but need to refer the SAP documentation.

  • Function module to update operation assignment for a BOM Item

    Hi Group,
    we have a requirement as under:
    Goto BOM Change using CS02->select any BOM item and click the Menu path->Extras->Operation Assignment; and check one or more Operations and then save the transaction.
    The above functionality has to be achieved through an Upload program(using Excel) with a Function module/BAPI to serve our purpose. we already did the functionality upto creation of BOM but could not proceed further on this current requirement.
    Kindly let me know your inputs if you have already worked in such type of requirement.
    thanks in advance for your inputs and let me know if any further info is needed.
    Regards,
    Vishnu

    Hi,
    Check the Bapis for BOM
    BAPI_MATERIAL_BOM_GROUP_CREATE
    CSAP_MAT_BOM_MAINTAIN
    I hope second BAPI will be more usefull for your requirement.
    Regards,
    Goutam Kolluru.

  • Function Module Interface for Agent Determination Rule without Tables Param

    Hi,
    I'm currently trying to create an agent determination rule using a custom function module. I know that the function module must have a certain interface consisting of two table parameters to be accepted by the system.
    But since table parameters are obsolete for a few years, what's the solution for this?
    As workaround, I just copied an old function module with the right interface but that's not an ideal solution for me.
    Did anyone else come across this?
    Thanks and regards,
    Max

    Hello,
    "I know that the function module must have a certain interface consisting of two table parameters to be accepted by the system."
    So, you have to use tables. You can't use tables in a new function, but you can copy one that does.
    What sort of "solution" did you have in mind?
    regards
    Rick Bakker
    hanabi technology

  • BAPI or Function Module for inserting record in any " Org. Mgmt" Infotype

    Hi All,
    I am working on HR-ABAP.
    I wanted to know the name of the <b>BAPI </b>or the <b>Function Module.</b> that can be used to insert the records in any of the <b>Organization Management</b> Infotype, particularly in the <b>Planned Compensation</b> infotype HRP1005.
    It is Quite Urgent. Kindly drop ur post if u have any idea even.
    Thanks and Regards
    Ajay

    RH_INSERT_INFTY
    Regards,
    Amit
    Reward all helpful replies.

  • Function module required to hide assignment block for Opportunity.

    Hi all,
    I have an requirement where i have to hide the assignment block "subsequent assignment" for the opportunity. I dont have any idea how to do it. Is there any function module or BADI to do so.
    Please reply if you have any hints about that.
    Thanks and Regards.
    Raman Khurana.

    Hi Raman,
    there are several ways:
    1.
    Implement method DO_CONFIG_DETERMINATION and get another configuration for the overviewpage. In this configuration you can display the assignmentblocks as desired.
    2.
    Methods DETACH_STATIC_OVW_VIEWS in combination with REATTACH_STATIC_OVW_VIEWS.
    Here you can iterate over all assignment blocks and strip those not wanted from the UI.
    3.
    In the business partner there is a BAdI for this. THere might be one for BT as well. Maybe someone knows, or debug for the call yourself.
    For detail use the search functionality of this forum. There have been some threads regarding this the last weeks.

  • Function Module to Insert Source Code through RFC

    Hi,
    I have a Requirement to Insert the Source code to Remote System. I know it is possible in local system with syntax 'INSERT REPORT' . But I want to insert source to Remote system . Is there any Function Module through which I can Insert Source through RFC ?
    Regards,
    Sachin

    Maen Anachronos wrote:
    Despite Mat's warning you still want to proceed?
    There's no teaching some people. If the client wants there system wide open to abuse, that's up to them. What will they do if someone uses the function module to send a program that does something like this?
    DELETE t000 WHERE mandt NE space
    So, here's some more rope, and further demonstration of the huge risk.
    You want to create a program dynamically, with a name of your choosing. Simple, send the FM the source code of a program that generates the program you want, with the fixed name. I suggest SAPMSYST as a really good one to play with.

  • Function module to insert table VBEH /move from VBEP to VBEH

    Hi all,
    Actually, I'm using BAPI_SALESORDER_CHANGE to change quantity of the schedule line, but it only update quantity in table VBEP. I want to make old quantity saved to history table (VBEH).
    is there any function module/BAPI to get this?
    When Sales Distribution - schedule line agreement (VBEP) move to schedule line history (VBEH) ?.
    Thanks.

    yeah....
    i got this method from my friend. Thanks Teddy
    it will save old schedule line to VBEH and create new release order
    *   Populate Sales and Distribution Document Number
        p_salesdocument = pwa_curr_forecast-vbeln.
    *   Populate Sales Document Header Checkbox
        pwa_order_header_inx-updateflag = 'U'.
    * Populate Schedule Lines
      CLEAR lwa_schedule_in.
      lwa_schedule_in-itm_number  = pwa_curr_forecast-posnr.
      lwa_schedule_in-sched_line  = pwa_curr_forecast-etenr.
      lwa_schedule_in-req_qty     = pwa_curr_forecast-wmeng.
      APPEND lwa_schedule_in TO pi_schedule_in.
    * Populate Schedule Line Checkbox
      CLEAR lwa_schedule_inx.
      lwa_schedule_inx-itm_number = pwa_curr_forecast-posnr.
      lwa_schedule_inx-sched_line = pwa_curr_forecast-etenr.
      lwa_schedule_inx-updateflag = 'I'.
      lwa_schedule_inx-req_qty    = 'X'.
      APPEND lwa_schedule_inx TO pi_schedule_inx.
    * Populate delete schedule vblb
      CLEAR lwa_del_schedule_in.
      lwa_del_schedule_in-itm_number   = pwa_release_ord-posnr.
      lwa_del_schedule_in-rel_type     = '1'.
      lwa_del_schedule_in-dlvschedno   = l_labnk.
      lwa_del_schedule_in-dlvscheddate = pwa_release_ord-abrdt.
      APPEND lwa_del_schedule_in TO pi_del_schedule_in.
    * Populate delete schedule vblb checkbox
      CLEAR lwa_del_schedule_inx.
      lwa_del_schedule_inx-itm_number   = pwa_release_ord-posnr.
      lwa_del_schedule_inx-rel_type     = '1'.
      lwa_del_schedule_inx-dlvschedno   = 'X'.
      lwa_del_schedule_inx-dlvscheddate = 'X'.
      lwa_del_schedule_inx-updateflag   = 'I'.
      APPEND lwa_del_schedule_inx TO pi_del_schedule_inx.
    CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
        EXPORTING
          salesdocument               = p_salesdocument
    *     ORDER_HEADER_IN             =
          order_header_inx            = pwa_order_header_inx
    *     SIMULATION                  = ' '
    *     INT_NUMBER_ASSIGNMENT       = ' '
    *     BEHAVE_WHEN_ERROR           = ' '
    *     BUSINESS_OBJECT             = ' '
    *     CONVERT_PARVW_AUART         = ' '
    *     CALL_FROM_BAPI              = ' '
    *     LOGIC_SWITCH                =
    *     I_CRM_LOCK_MODE             = ' '
    *     NO_STATUS_BUF_INIT          = ' '
    *   IMPORTING
    *     SALES_HEADER_OUT            =
    *     SALES_HEADER_STATUS         =
        TABLES
          return                      = li_return
    *     ITEM_IN                     =
    *     ITEM_INX                    =
          schedule_in                 = pi_schedule_in
          schedule_inx                = pi_schedule_inx
    *     PARTNERS                    =
    *     PARTNERCHANGES              =
    *     PARTNERADDRESSES            =
    *     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                  =
    *     SALES_KEYS                  =
    *     CONDITIONS_IN               =
    *     CONDITIONS_INX              =
    *     SALES_CONTRACT_IN           =
    *     SALES_CONTRACT_INX          =
    *     EXTENSIONIN                 =
    *     ITEMS_EX                    =
    *     SCHEDULE_EX                 =
    *     BUSINESS_EX                 =
    *     INCOMPLETE_LOG              =
    *     EXTENSIONEX                 =
    *     CONDITIONS_EX               =
    *     SALES_SCHED_CONF_IN         =
    *     DEL_SCHEDULE_EX             =
          del_schedule_in             = pi_del_schedule_in
          del_schedule_inx            = pi_del_schedule_inx
    *     CORR_CUMQTY_IN              =
    *     CORR_CUMQTY_INX             =
    *     CORR_CUMQTY_EX              =
    *     PARTNERS_EX                 =
    *     TEXTHEADERS_EX              =
    *     TEXTLINES_EX                =
    *     BATCH_CHARC                 =

  • Searching for function modul which insert adressdata bevor fm vendor_insert

    hello,
    i read many threads, but I find no solution.
    I want use the fm vendor_insert for a migration. But using the fm vendo_insert require an existing address entry.
    Is there any central fm which create the whole address.
    regards
    Kim Werner

    Hi Mahesh,
    Very good questions.  Infact it's very difficult to answer all the questions.
    You can search many FAQs in net...
    If you have any specific questions related to single topic, Post message for each.
    I can send some of FAQ documents to u
    Answers
    1) Using Index like Field(1)-1st record field , Field(2) - 2nd record field etc... in Table control.. we can handle BDC
    2) BAPI will be programmed using OO concepts more.. and as Interfacing is more enhanced here than normal FM.
    etc...
    Regards,
    Manjunatha

  • How could we assign customized function module to the object

    Hi Experts,
    How could we assign z made function module to the object type.
    for instance, i have prepared one z function module and want to assign segment builder.
    Please help in this regard
    Thanks
    Mahesh Babu

    Hi Thiru,
    Standard Transaction Codes, have their own Function Modules for generating Outbound/Indbound Idocs. Where these Function Modules will be configured to a particular Process Codes.
    For E.g for PO's
    Process code : ME10 - IDOC_OUTPUT_ORDERS - for creation
    In case if its a Z Function Module, It depends on the case how you use IDOC types. either directly through Z Program or through Inbound/Outbound Process  codes with respective Function modules.
    Regards,
    Anbalagan

  • Function module for Change Master (CC01) creation

    Hi all,
    Pl. tell me function module or BAPI for 'Change Master' Creation. It is linked with BOM to record BOM changes. Its Tcode is 'CC01'. Pl. reply.
    Regards,
    Darshana

    try this...
    RFC_CREATE_CHANGE_MASTER

  • How to Assign a function module for customized IDOC

    Hi,
           I have created a customized IDOC. Can any body explain how to assign a FM for customized IDOC? Is same IDOC can be used for both Outbound and Inbound Process? In WE41 and WE42 we have to give the outbound and inbound function module name. can we give same function module? Is process code is same for both outbound and inbound process?
          Valuable suggetions are appreciated.
    Regards,
    Ram

    Hi ,
    Here is the Procedure for the Inbound Idoc Funtion Module
    Function Module : SE37
    Message : WE81
    Assign message : WE82
    Assgin FM : we57
    Process Code : WE42.
    Assign Partner Profile - WE20,
    To test the Inbound IDOC.
    In WE19, Give the IDOC number & execute ... then put the cursor on the idoc control record . then click on the Standard Inbound push button on the application tool bar.it will show show all the details like partner no,type , message type , process code & function module name ...
    now put a break point in the function module .. & debug .
    if u r using customised inbound function module , then click on inbound function module .. there u will get a pop screen with FM name & debugging option in both background & foreground mode...
    Reward Points if it is Useful.
    Thanks,
    Manjunath MS

  • Contact Creation Using Function module

    Hello Expert,
    I want to create  contact as a remote enabled function module for gateway services which function module I have to use for creation on contact??
    Moderated: Please use the search before posting.
    Message was edited by: Andrei Vishnevsky

    Hi,
    Basically you can use
    BAPI_BUPA_CREATE_FROM_DATA this fm allow you to create any kind of BP
    You might also need to use  BAPI_BUPR_CONTP_CREATE in order to create the relationship between the contact and the corresponding BP.
    Dont forget to use also the BAPI_TRANSACTION_COMMIT after the other fm.
    Regards

  • Function modules upon activation of locked objects?

    What are the names of the functional modules that will be generated upon activation of locked objects?

    Prior to creating setting any locks in an ABAP program, a lock objects must be created in the ABAP dictionary.
    When the lock object is created, the system will automatically generated the two function modules required for locl management.
    The First function module used to set locks is the ENQUEUE_<lock Object Name>. This function module is used to generate a lock entry in the lock table. If the lock cannot be set for any reason then this would be reflected in the return code.
    The second function module used to release locks is the DEQUEUE_<Lock Object Name>. Thus function module will remove a lock entry from the lock table.
    These Function modules are used to set and release locks in an ABAP program. The programmer simply perform the specific "CALL FUCNTION.."
    statemen for each functiom module.
    These lock functiom modules are executed in a specific work process with the SAP system dedicated to lock management, This work process is run on a single server that maintains the central lock table for entire SAP system.
    There are two types of locks that can be set:
    Shared lock - is a read only lock that prevents data from being changed while a user is reading it.
    Exclusive lock- is a rite lock that prevents data being changed while a used is already modifying it.
    Thanks & Best Regards,
    Shakti Barath

Maybe you are looking for

  • DVR capacity

    After erasing all recorded movies from DVR, I check Recorder Status and see "16% used", 84% free". I thought maybe 16% of memory is used to store data regarding Schedule. Then I deleted all schedules to see what happens. It still says the same, i.e.

  • SSRS - Report Builder 3.0 - Bar Chart

    Hi, I have Bar chart which shows number of items sold by Month , by year for the last two years My Query is something like Select Count(*) as NumOfItemsSold, Month(SaleDate) As MonthSold, Year(SaleDate)As YearSold From Sales where SaleDate in (DATEPA

  • HT3743 plz help me out plzzzzzzzzzzzzzzzzzz (( i have this eror 1015

         plz help me out plzzzzzzzzzzzzzzzzzz (( i have this eror 1015

  • Extracting classfiles on start takes a long time (Command and Service)

    I added a new .jar to the lib folder and now it takes a really long time to start weblogic, it seems to get hung up on Extracting classfiles to . . . Any Ideas ? WL 6.1 Thanks

  • Change sales persons on historical orders

    I am working with a client that has some turnover on sales persons. This means that orders for a specific customer is placed by different sales persons. In order to create statistics for budget work they need to histocially go in an change or add a s