Transaction BUS3 - Further checks - Own function module

In order to create additional checks on BP Identification Numbers, we used tx BUS3 to add to view BUP520 under Further Checks our own function module.
As a start we took a straight copy of BUP_BUPA_PAI_MISC, the SAP delivered function module.
After the SAP FM, our Z-module gets called with parameter I_SICHT, identical to the
parameters of the SAP FM. No other parameters nor tables get passed.
How can we get hold of the same data as the SAP FM ? We want to check e.g. table
GT_BUT0ID (identification numbers). It is filled in the SAP FM at the end of FORM bup520_pai, but is empty in the Z-module ?
Thanks for your solution.

Hi.
We also validate the ident. numbers but on check or save event.
Create and Add the new z.fm to the event DCHCK (appl = 'BUP') in tcode BUS7.
We use some trick to get this data from memory [SAPLBUD0].
You can try to use it for the PAI (the same f.group = BUD0)
function z_gzp_but0id_get.
""Local interface:
*"  TABLES
*"      OT_BUT0ID STRUCTURE  ZGZP_ST_BUT0ID OPTIONAL
*"      OT_MEM_BUT0ID STRUCTURE  VBUT0ID OPTIONAL
  data: lv_fname1(50) type c value '(SAPLBUD0)GT_BUT0ID[]'.
  data: lv_fname2(50) type c value '(SAPLBUD0)MEM_BUT0ID[]'.
***------ ID-NUMMERN -
     BEGIN OF GT_BUT0ID OCCURS 0.
       INCLUDE STRUCTURE XBUT0ID.
**DATA:   XMARK     LIKE BOOLE-BOOLE,
       TEXT      LIKE TB039B-TEXT,
       ENTRYDATESTR TYPE BU_ENTRYDATESTR,
       DATEFROMSTR  TYPE BU_DATEFROMSTR_ID,
       DATETOSTR    TYPE BU_DATETOSTR_ID,
     END   OF GT_BUT0ID,
***------ ID-NUMMERN: ZUORDNUNGEN (ALTER STAND) -
     BEGIN OF GT_BUT0ID_OLD OCCURS 0.
       INCLUDE STRUCTURE XBUT0ID.
**DATA: END OF GT_BUT0ID_OLD,
corresponds to declaration of gt_but0id in include LBUD0TOP
  types: tp_s_but0id type zgzp_st_but0id.
  types: tp_t_but0id type standard table of zgzp_st_but0id.
  types: tp_s_mem_but0id type vbut0id.
  types: tp_t_mem_but0id type standard table of vbut0id.
  field-symbols: <fs1> type tp_t_but0id.
  field-symbols: <fs2> type tp_t_mem_but0id.
  data: ls_but0id1 type tp_s_but0id.
  data: ls_but0id2 type vbut0id.
  if ot_but0id is requested.
    assign (lv_fname1) to <fs1>.
    clear ot_but0id[].
    loop at <fs1> into ls_but0id1.
      ot_but0id = ls_but0id1.
      append ot_but0id.
    endloop.
  endif.
  if ot_mem_but0id is requested.
    assign (lv_fname2) to <fs2>.
    clear ot_mem_but0id[].
    loop at <fs2> into ls_but0id2.
      ot_mem_but0id = ls_but0id2.
      append ot_mem_but0id.
    endloop.
  endif.
endfunction.
I hope it helps.
Regards, Robert

Similar Messages

  • How to config Check Digits function module for Student Number Validation

    Hi SLCM Experts,
    In the SAP-SLCM, How to use check digits function module for validate student number.  Just only config it or need to customizing program.
    *Any idea to student number validation in SLCM?*
    Best Regards,
    Suvatchai K.

    Hi ,
    Can you expalin it further ?
    You configure the St. no in piq_matr . And set it  as external or internal no. range which suits your business .
    What is the validation you are looking for ?
    Regards
    Gajalakshmi

  • How to check if function module exist

    Hi All!
    Does anyone know how to check if function module, which name is provided by the user, exists?
    I have to execute a function but when user provides a incrrect name - i receive a short dump. I would like to chceck if this function exists before execution and if not - warn user with message box.
    Thanks
    Tomek

    REPORT z_tmtest MESSAGE-ID zz.
    PARAMETER: a_fname  LIKE tfdir-funcname.
    PERFORM test_fun_exist USING a_fname.
          FORM test_fun_exist                                           *
    Test FM Exists
    FORM test_fun_exist USING f_funcname  LIKE tfdir-funcname.
      CALL FUNCTION 'OM_FUNC_MODULE_EXIST'
           EXPORTING
                function_module = f_funcname
           EXCEPTIONS
                not_existent    = 1
                OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE e001.
      ENDIF.
    ENDFORM.

  • What is the transaction to trace all the function module and its returned m

    HI ,
    What is the transaction to trace ALL the function module and its returned messages in a program/transaction execution?
    Thank you.

    You can use this function module for that purpose.
    RS_CROSSREFERENCE

  • Developing your own function modules

    In NW2004s SP20 WebAs 640C Under Unix
    for Customizating CCMS alert messages paramaters does not working... so I have to create own function modules
    Can anyone tell me how to create own function modules
    Travis

    refer this link:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Regards,
    Ravi

  • Authorization check on Function module return values

    Hi,
    I have a tricky situation. In our BW implementation, many of the FI infoobjects are authorization relevent. One of the objects is 0COSTCENTER.  A user has been assigned with authorization profile, in which the user is authorised for COST CENTER = A* and #.  All planning templates were working nice.
    We were on SP 12 earlier, now we upgraded to SP 20. Now came a issue, the user gets error that user is not authroised for the data. After our analysis, we found nothing wrong as such, so contacted SAP. They came back with a root cause
    In my planning function, an ABAP function module is used. The function module returns a COSTCENTER value. This return value is then assigned to a variable, this variable is of type 0COSTCENTER.
    SAP said there was a bug in their own design. The bug was, if the cost center value is directly used in planning function for other calculations, it will throw an authorization error.  But, if the COST CENTEr value is given to a variable and that variable is used for other calculations,  it works fine. Thats why it worked for us earlier.
    Now, they have removed that bug, so variables are also checked against authorizations and they said we need to either change the code or give * for the COST CENTER authorization.
    So we have a problem. It is not straight forward to give * for COSTCENTER in FI BW implementation. SAP theory is that they cannot say which value the functional module will return. So they will check against ALL the values for COSTCENTER but not the authorised values.
    Has anyone seen this issue before? is it only specific to planning function or its just ABAP concept? Any suggesations to come out this problem?

    Bindu, thanks,
    The error is coming at the program compile level itself i.e. before executing the planning group itself. As per the F1 help on forumla editor and from their support, the system reads all the reference data,  So when it sees the function module and its export parameter, it captures all the data for COST CENTER as reference data.
    Thus even I am sure that the return value will be always authorized, the reference data is checked for the full authorization. Thus its failing

  • Bypassing authority check in function module

    hi experts
    I have developed an abap  report on material bom explosion using function module cs_bom_explosion
    Its working fine and all data are coming ok since I HAVE THE AUTHORITY OF T CODE CS03..
    pls note all bom fn modules checks for authorization .
    However in production environment some users may not have CS03 AUTHORIZATION.
    for them this report is not displaying  any bom data.
    Now the requirement  is such that user will not have cs03 authorization,
    but will see the bom data through this report.
    so how to stop the authorization check for cs_bom_explosion in  abap report.
    regards
    pankaj

    as per my knowledge, granting the rights to those users is only the solution. Now a days the customers are wanting to add explicit authority-check too in the Z objects!! so, i dont see its good idea to bypass the check.
    thanq
    Edited by: SAP ABAPer on Mar 7, 2009 6:12 AM

  • Combination Checks using Function Module

    Hi people,
    I am trying to use function module to carry out a 'simple' combination check.
    Rules: If no values are entered for WBS, Cost center and profit center, raise and error.
    Also, if a value is entered for both cost center and wbs raise an error.
    The fucntion module looks okay, but the combination check doesn't work. It still allows the records to be saved in the infocube when I test on the layout, even when the conditions specified are met. No errors are raised.
    see code below:
    FUNCTION ZFF_BPS_CHCK_CC_WBS_PC.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(IS_CHAS) TYPE  ANY
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"  EXCEPTIONS
    *"      NO_VALUES_ENTERED
    *"      MORE_THAN_ONE
       FIELD-SYMBOLS: <fc_profit_ctr> TYPE /BI0/OIProfit_Ctr,
                     <fc_wbs_elemt>  TYPE /BI0/OIWBS_ELEMT,
                     <fc_costcenter> TYPE /BI0/OICostcenter.
      ASSIGN COMPONENT:
      '0PROFIT_CTR' OF STRUCTURE is_chas TO <fc_profit_ctr>,
      '0WBS_ELEMT' OF STRUCTURE is_chas  TO <fc_wbs_elemt>,
      '0COSTCENTER' OF STRUCTURE is_chas TO <fc_costcenter>.
    *CHECK IF ALL THE VALUES ARE EMPTY
      IF <fc_profit_ctr> = '#'
          AND <fc_wbs_elemt> = '#'
          AND <fc_costcenter> = '#'.
        MESSAGE e000(ZBPS) RAISING NO_VALUES_ENTERED .
      ENDIF.
    *Check if both cost centre and wbs are entered.
      IF <fc_costcenter> <> '#'
        AND <fc_wbs_elemt> <> '#'.
        MESSAGE e000(ZBPS) RAISING MORE_THAN_ONE.
      ENDIF.
    ENDFUNCTION.
    Any helps will be appreciated.
    Regards,
    Uche

    Hi Uchenna,
    The function module will not be called if all of the characteristics being checked are unassigned.  Therefore if you are trying to test this combo check by entering a line with blank WBS, CC, PC, then the code will never actually be called.
    If you want to ensure this doesn't happen then I recommend writing a FOX that checks for this combination and throws an error if found.  You can run the FOX on refresh so the check will happen each time the user enters a new line and hits refresh.
    Hope this helps,
    Tristan

  • Transaction code to assign the function module to the process code

    Hi,
    What is the transaction to assign the function module to the process code

    Hello Preethi,
    Try with these Tcodes:
    <b>
    WE41                           0000  Process codes, outbound
    WE42                 RSECODIN  1000  Process codes, inbound
    WE43                           0000  Funct.module: Status record display</b>
    If useful reward.
    Vasanth

  • BAPI or Function module for transaction POP2

    Hi,
    I have a requirement to change the value of a field in transaction POP2. Does anyone know any BAPI or FM to update the transaction POP2.

    Hi,
       CHECK THE Function module's
    VHUHU_HU_GET_MATERIALS
    VHUHU_READ_HU_HEADS_ITEMS_DB
    VHUPDCA_GET_CUSTOMIZING
    VHUPIAP_GET_PI_INFO
    Or
    Check the pacakge <b>ISAUTO_VHU_PACKOBJ</b> with this pacakge name you can search in SE37
    Regards

  • How to connect our outbound function module to the message type

    how to connect our outbound function module to the message type any transcation code exits to assign the message type with the function module .
    Thank in advance .
    A. Thiru

    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

  • 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 to extract sales org data for sales transaction

    Hi! I would like to find out the sales org assigned to a particular sales transaction. When I run function module CRM_ORDER_READ, it passes some information into LT_ORGMAN but I get 2 entries rather than the 2 entry I see in my sales transaction. Is this the right table to look for sales org data for a particular transaction?
    Appreciate any help on that.
    Cheers!
    SF

    Please check with following function module:
    CRM_MAP_ORGMAN_DATA
    CRM_ORGMAN_GET_DB
    CRM_ORGMAN_READ_DB
    CRM_ORGMAN_READ_OW
    hope it will useful.

  • Function modules for User check and Product search

    Hi,
    Please give me the names of function module which are used for user login check, and Product search.
    Thanks,
    Devender V

    Hi,
    For User login check belwo Function module,
    SUSR_LOGIN_CHECK_RFC for ECC/R3
    CRM_ISA_LOGIN_R3USER_CHECKS for CRM
    For product try below Function module.
    BAPI_MATERIAL_GET_DETAIL
    I hope this information will help you.
    Regards.
    eCommerce Developer

  • Reg: Function Module thats used to check the status of JOBS and mail it

    Hi Experts,
    Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
    Please help me,

    Hello Nagaraj,
    You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
    ABORTED TYPE C,
    FINISHED TYPE C,
    PRELIMINARY TYPE C,
    READY TYPE C,
    RUNNING TYPE C,
    SCHEDULED TYPE C.
    Following is the link for the same:
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
    Warm Regards,
    Riki Dash

Maybe you are looking for

  • Unable to right click shortly after start-up on Macbook Pro running 10.7.5

    Hi. Earlier today I was using a Logitech wireless mouse, and suddenly I couldn't right click anymore. I was playing League of Legends and left the game and I still couldn't right click, neither with my Logitech mouse, or even the trackpad. I restarte

  • HT202020 Unsupported Video Format for Canon T2i?

    Why would they not have support for video from a Canon Rebel T2i, when they do for the T1i, T3i and T4i? Is there anything I can do so that I can see my T2i videos in Aperture? Any help would be much appriciated! Thanks.

  • Subcontracting report

    hello all, How we can configure report ie balance sheet and p&l a/c for subcontract process

  • Implementation of toArray(Object[] a)

    I'm having trouble grasping one small aspect of the method, specifically: "Otherwise, a new array is allocated with the runtime type of the specified array and the size of this collection." As I understand it, if a user passes in an array of String o

  • No Records Display in List

    Hi, We just upgraded our sandbox environment from 4.6C to ECC6. I'm finding that no Infotype 0000 records (Actions) display when I click on the Overview icon from transaction PA20, even though I know they exist. Whether there is actually just one rec