Function Module that will retrieve the Field Catalogs of a Display Variant

Hello Experts,
Are there any function modules that I can use to retrieve the field catalogs (fields to be displayed in ALV report) by passing the display variant name?
An RFC needs to apply this to determine which field(data) to be passed to XI (calling system) depending on user login.
Thanks in advance!

These are the various FM available for Variants (field Layout)
REUSE_ALV_VARIANT_ALL_MAINTAIN Maintain all display variants for one object
REUSE_ALV_VARIANT_DEFAULT_GET  Read default display variant (description only, w/o field catalog)
REUSE_ALV_VARIANT_EXISTENCE    Checks whether a display variant exists
REUSE_ALV_VARIANT_F4           Display variant selection dialog box
REUSE_ALV_VARIANT_MAINTAIN     Definition of a display variant outside the list context
REUSE_ALV_VARIANT_SAVE         Save a display variant
REUSE_ALV_VARIANT_SELECT       Read a display variant
Regards,
Amit

Similar Messages

  • Function Module that will retrieve the parameters for a given function Modu

    Hi
    We have a requirement where we will be calling Function Module that will be maintained in a table entry. How we will determine what is the parameters that is required by this function module. Is there a FM that will suffice the requirement.
    Thanks in advance
    arghadip

    Hi,
    You have to write a custom code for that. Use the table FUPARAREF to retrieve the parameters for a function module. Give function module name as input.
    Pls reward points if solved your issue.
    Regards,
    Renjith Michael.

  • Function module that can give the last value or the highest value of a key

    hi,
    Is there any function module that can give the last value or the highest value of a key feild in a z table.
    regards,
    johnson

    Hi ,
    We have  aggregate functions in SQL. Some of the functions are as follows.
    MAX(col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
    MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
    AVG(  col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    COUNT( col ) Determines the number of different values in the column col in the resulting set or in the current group.
    For further details , type the function name name and press F1 for further help.
    Eg: select count(mantr) from mara into workarea where condition.
    Reward points if helpful.
    Thanks and Regards.

  • Field not present in the Field Catalog also getting displayed in the ALV

    Hi Experts,
    I am trying to display some to an ALV grid. But since i don't need all the fields from the internal table, i have deleted those fields from the field catalog. But in-spite of doing this the field heading is still getting displayed. I am not able to figure out the reason for this. Also note that the i have not deleted that field from my internal table which contains the actual data.
    Regards,
    Kush

    Hi,
    If your giving your internal table to the below field then ALV try to disply those many coloumn.
    wa_fcat-tabname    = 'IT_OUTPUT'.
    You can add for that field name.
    wa_fcat--NO_OUT = 'X'.
    Please check the field name on the output will be same as before column name .

  • Name of function module that will remove  sign ( + or - ) of any quantty

    Dear Sir,
      Can Any Body help On this matter .
    My requirement is that in my quantity field some amount will come like
    9812636-
    758934-
    436478
    46378564-
    i want to remove the minus sign if it is in negative if it ia in possitive then it's ok.
    but to multilpy with -1 is not solution bcz it is debit and credit calculation so  i want a function module for further processing .

    Sample Program:
    DATA :
    v_num type i,
    v_no1 type i,
    v_no2 type i.
    v_no1 = -1.
    v_no2 = 2.
    v_num = v_no1 * v_no2.
    v_num = ABS( v_num ).
    write : v_num.

  • Function module that will return week  details

    Anyone know Sap FM that will return Week  details(as below)for a given start and end dates (similar to the function module HR_99S_INTERVAL_BETWEEN_DATES which  returns details for a month) independent of factory calendar
    I am expecting
    Inputs
    Start Date  - 01/01/2005
    End Date   -  05/05/2006
    outputs
    WK YEAR BEGDA      ENDDA      
    02 2005 01/03/2005 01/09/2005 
    03 2005 01/10/2005 01/16/2005 
    04 2005 01/01/2005 01/23/2005
    Thank, Bill

    Hi Bill,
    FM is <b>GET_WEEK_INFO_BASED_ON_DATE</b>
    Here's a test-program for your requirement:
    REPORT zforum09 LINE-SIZE 255.
    PARAMETERS:fdate  LIKE sy-datum DEFAULT '20050103',
               tdate  LIKE sy-datum DEFAULT '20060505'.
    DATA : BEGIN OF itab OCCURS 0,
           week LIKE scal-week,
           from LIKE sy-datum,
           to LIKE sy-datum,
           END OF itab,
           next LIKE sy-datum.
    next = fdate.
    WHILE tdate > itab-to.
      CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
           EXPORTING
                date   = next
           IMPORTING
                week   = itab-week
                monday = itab-from
                sunday = itab-to.
      next = itab-from + 7.
      APPEND itab.
    ENDWHILE.
    LOOP AT itab.
      WRITE:/ itab-week+4(2),
              itab-week(4),
              itab-from,
              itab-to.
    ENDLOOP.
    Regards Andreas

  • What is function module that popups when the find button is clicked

    hi,
    I need to get a popup screen that usually popup when the find(ctrl+F) is clicked.

    Hi
    Try using the following fnction modules:
    POPUP_WITH_TABLE_DISPLAY.
    F4_FILENAME.
    Reward points if helpful answer.
    Ashvender

  • Function Module required to convert the date coming from external system

    Hi Friends,
       I need a Function Module that would convert the incoming date from external sytem in format YYYYMMDD to the SAP system in DDMMYYYY. The External system data type for the date is Numberic. Please suggest any FM if you know.I found out many in SAP but didn't find for this requirement

    Wait a minute.  I am definetely missing something here.  You want to convert from an external format YYYYMMDD to SAP's internal format?  SAP's internal format is YYYYMMDD.
    All you should have to do is move you external date directly to your internal date.
    data: date1(8) type c value '20051225'. "Format YYYYMMDD
    data: date2 type sy-datum. "Format (YYYYMMDD)
    write: / date2.
    When you write out date2 it will be in whatever format your user profile has. 
    If you want to force the date format independent of your user profile settings during the write statement:
    write: / date2 DDMMYY.
    Message was edited by: Thomas Jung

  • Any function module to read all the values in Tcode-PPQD?

    Hi all
    Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
    and any idea what tables are involved to get these values like parent and child relationship?
    Thanks in advance.
    Murali.

    Murali,
    you can use the following..
    data: w_sobid type sobid, "Qualification ID
          w_objid type objid. "Qualification Catalog
    select objid  into w_objid
                  up to 1 rows
                  from HRP1001
                 where otype = 'QK'
                   and plvar = '01'
                   and istat = 1
                   and risgn = 'B'
                   and relat = '030'
                   and endda ge sy-datum
                   and begda le sy-datum
                   and sclas = 'Q'
                   and sobid = w_sobid.
    endselect.
    if sy-subrc eq 0.
    write: / w_objid,w_sobid.
    endif.
    Regards,
    Suresh Datti

  • Any Function Module which will give user id or position

    Hello Friends,
       is there any standard function module which will give the attribute position id or user name if i pass the 'attribute id as CNT' with value of the CNT. i know there is a standard function module 'BBP_READ_ATTRIBUTES'. but this FM will give the value of the attribute id if i pass the user id and attribute id but i want user id or position when i pass attribute id and value.
    john.

    Hi,
    See this related thread:
    Re: Get all users given a specific product category
    You cna use the similar approach to find for the attribte cost centre.
    BR,
    Disha.

  • What is the Function MOdule that returns the fields in database table order

    Hello Folks
      I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
    FAQ. Please search before posting your question.
    Edited by: Suhas Saha on Oct 10, 2011 10:19 PM

    Hi,
    You can use this BAPI.
    <b>BAPI_SALESORDER_GETLIST</b>
    Reward if useful.
    Regards,
    Vimal

  • Characteristic KNDNR is no longer in the  field catalog and will be deleted

    Hi ,
    we are doing System Landscape optimisation project  and the issue is as follows
    In account based copa when i run the KE30 report , i am getting the message in the target  system
    'Characteristic KNDNR is no longer in the  field catalog and will be deleted'
    In the source system (production system), the customer characteristic is available as a variable in the characteristic list as an option and can be selected in the KE32 t code.
    the customer is available in the KE30 report (source system) and it can be drilled down on the basis of the customer but it  is not possible in the target system
    in the Target system (to be production system) the customer characteristic is not available as a variable for selection in the KE32 report under the characteristic list.
    i checked the ke3e t code in both the source and the target system and the characteristic KNDNR is not available as a variable
    I checked the KEA5 and KEA0  t code in both the source and the target system , the customer characteristic is not available
    thanks in advance
    kind regards
    sap student

    Hi,
    Are you trying to create a report from a Form? When are you getting this information? At the time of creating the form (KE34) or report (KE31)?
    I have not seen this message though, can suggest to check if the required characteristic is there in KEA0, KEA5 and also if adding that in KEQ3 helps.
    Regards,
    R C Sabat

  • The Function Modules that can assign a Package & transport request no...

    Dear All,
                   I am creating a Program that will automatically create  Data Elements & Domains in SAP & assign the same to a Package & Transport request No...Well I have been able to create & activate the data elements & domains using Standard SAP Function Modules, but I am looking for the Function Modules that can assign a Package & transport request no. to these data elements & domains....Can anyone tell how to achieve this requirement...

    Hi,
    may be you have to use a classified task, we used
    FORM tr_request_choice  CHANGING pv_trkorr TYPE trkorr.
      TYPE-POOLS:
        trwbo.
      DATA:
        ls_request                            TYPE trwbo_request_header.
      CALL FUNCTION 'TR_REQUEST_CHOICE'
        EXPORTING
    *   IV_SUPPRESS_DIALOG                    = ' '
    *   IV_REQUEST_TYPES                      =
    *   IV_CLI_DEP                            = ' '
    *   IV_REQUEST                            = ' '
    *   IT_E071                               =
    *   IT_E071K                              =
    *   IV_LOCK_OBJECTS                       = ' '
          iv_title                            = 'Choose request, Task will be found'
    *   IV_START_COLUMN                       = 3
    *   IV_START_ROW                          = 7
    *   IV_WITH_ERROR_LOG                     = 'X'
    *   IV_NO_OWNER_CHECK                     = ' '
        IMPORTING
          es_request                          = ls_request
        EXCEPTIONS
          invalid_request                     = 1
          invalid_request_type                = 2
          user_not_owner                      = 3
          no_objects_appended                 = 4
          enqueue_error                       = 5
          cancelled_by_user                   = 6
          recursive_call                      = 7
          OTHERS                              = 8
      IF sy-subrc                             = 0.
        SELECT trkorr
          INTO pv_trkorr UP TO 1 ROWS
          FROM e070
          WHERE trfunction = 'S'
            AND trstatus = 'D'
            AND as4user = sy-uname
            AND strkorr = ls_request-trkorr.
          EXIT.
        ENDSELECT."rkorr into pv_trkorr
      ENDIF.
    ENDFORM.                    " TR_REQUEST_CHOICE
    Regards,
    Clemens
    Edited by: Clemens Li on Dec 15, 2010 2:36 PM

  • Function Module that gives the names of the file in the Application Server.

    Hi Experts,
       Please give me a Function Module that gives the names of the file in the Application Server.
    Thanks,
    Debi.

    Hi,
    see these links
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    http://abaplovers.blogspot.com/2008/05/function-module-sap-logged-in-users-to.html
    http://www.saptechies.com/abap-function-modules/
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-module-to-get-data-and-time-of-file-576751
    thanks
    karthik

  • 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

  • Have you ever come across this ?

    Hey there, Every time I record a midi region, all the the the regions before are glued together with the one just recorded.....it's GrrrrrREALLY anoying ?? I've used Logic for years and it's never done this before. Is it a bug or just me seeing thing

  • Deploy javafx applications on window. + uninstall old version

    I have a problem on windows xp when I deploy a new version of my javafx 2.2 application. The new version is replacing the previous version of my software, but when I look in my 'installed software'. My old version still appears. (I think this is some

  • Why when i change mask from 2d to 3d it change position on timeline seconds ahead?

    Please help, i dont know why i have this problem

  • Importing bacpak file into Azure

    I am importing a bacpak file back into Azure via the portal. I get a warning "Database ('Southeast Asia') and storage account ('West Europe') are not in the same region." However when I check both are set to West Europe. Has anyone see this warning o

  • Xorg crash after carriage return [SOLVED]

    When I login everything works until I give a carriage return somewhere, like emacs, shell,... Then Xorg crashes and brings me back to gdm. Any solutions for this problem? I'm using an nvidia graphics card. Last edited by return new int[5] (2010-10-03