BAPI to get payslip variants

Hi,
does anybody know how to get a list of the different payslip variants?
Is there a special BAPI call?
regards,
Andre

I don't think there is a BAPI for that..You can also read it from the  feature (T549D)..pl check the following code in the function module GET_PAYSLIP.
  IF PAYSLIP_VARIANT IS INITIAL.
    CLEAR: PME74.
    MOVE-CORRESPONDING P0001 TO PME74.                      "VKIK040109
    MOVE-CORRESPONDING RGDIR TO PME74.
    PME74-MOLGA = T500P-MOLGA.                              "HKUK066721
* determine payslip variant from feature
    PERFORM RE549D USING 'EDTIN' '1' PAYSLIP_VARIANT RET_CODE.
    IF NOT RETURN_CODE IS INITIAL.
      PAYSLIP_VARIANT = 'SAP&CALC'.
    ENDIF.
  ENDIF.
Regards,
Suresh Datti

Similar Messages

  • Get Payslip Variant

    Hi all,
    trying to find the payslip variant for a payroll unit I used
    TCODE  pe03   feature=EDTIN   to display the structure of variants.
    But I need a BAPI call or table calls to get the variant value.
    Could anybody help me?
    Andre
    Message was edited by: Andre Mers

    Thanks Suresh for input, but the problem got resolved just when i was gonna do what you suggested.
    the problem and the solution was very silly, here what i did.
    what happened was earlier in tocde: pu00_m10_cedt when i clicked on get variant only 2 to 3 variants would show up, ofcourse one of it was my variant defaulted in EDTIN. but what it did was it narrowed down the F4 help for Form. it would only show forms pertaining to cedt_ce.
    all i did was just remove the flag for global switch for concurrent employement from table t77s0
    ccure-glemp and ccure-mains  just removed the flag and tested the bapi and it worked and then again i put back the flags still it works..
    so the difference here i noticed was now in pu00_m10_cedt when i click on get variant i have huge list of variants and even the f4 drop down for Form shows relevant forms.
    so i guess the problem was variants getting cached/buffered.
    thanks all for help.
    screen shots for better understanding:
    while i had the problem with the bapi in tocde: pu00_m10_cedt,when i clicked on get variant i wld get
    [this|http://epmgdg.bay.livefilestore.com/y1pYk9M60vLuQy6QFm0ruvcy-kU0LcdRjsErR20AEHuVmJIZbYU2b2ARkGCFvLc6dw26oDTeFjoihvxc80aF8UQfw/cedt%20variant%20b4.jpg] screen straight away after i deleted and then put back the X flag to ccure-glemp and ccure-mains in T77S0
    now in pu00_m10_cedt,when i click on get variant i get [this|http://epmgdg.bay.livefilestore.com/y1pT7VvHDORf29aM_5aVVCU0ojMenl4X8558dblkcmf7xKoUgZXXHiBxo7z-BHhEP2A6eqWrEvBku_AR3F9WNRMZg/cedt%20variant%201-2-after.jpg]first and when i execute as u can see more options are available like [this|http://epmgdg.bay.livefilestore.com/y1pBfJC3lHihVZG08wNnaOFj4lnPUI2noPYxPAsQjyhKEovAT--YsLcuEK7Y_L5sz6m6K4d8Xal3b5NG-E4-TCLRQ/cedt%20variant%202-2-after.jpg]
    Edited by: Hruser on Dec 16, 2008 3:47 PM

  • Please tell me a BAPI to get Closing balance of customer account based on Sales Organization?

    Hi Experts,
    A requirement has come up where I want to get Customer closing balance based on its sales organization as this particular customer is extented to 2 different sales organizations. I want to get the closing balance of individual sales organization vise.
    Please tell me a BAPI to get Closing balance of customer account based on Sales Organization?

    AFAIK there is no such BAPI, cause there is no database table with balance for customer per sales organisation. (No KNCx table for VKORG)
    First ask functionals (*) how to recover sales organisation from a FI document (I suppose for SD invoice it is easy if no merging between organisation) will be a little tricker for pure FI document like payment transactions (hope thet are quickly cleared...)  Then start from non cleared records of BSID (also BSAD if you use a past date of reference, in case you have to add the records of BSAD with clearing date greater than reference date) and cross it with SD information to break FI into sales organisation.
    Regards,
    Raymond
    (*) Ask for where do they store VKORG in FI documents

  • Is there any FM or BAPI to get list of all sales orders

    Hello all,
            I have the requirement like below.
    Is there any FM if i Pass Drawing document no, type,part,revision level which gives
    the output list as.
    1) all sales orders, where the above drawing document no is attached to the materials
    and these materials are used as one of the lower level components in the Sales order BOM,
    I need to show all those sales orders along with SO number,item,Material,Plant and BOM Item no,
    2)all sales orders, where the above drawing document no is attached to the materials
    and the same material is one of the item in sales order.
    3)all sales orders, where the above drawing document no is used as one of the component in Sales order BOm's
    Addition of 1,2,3 will be the o/p.
    are there any FM or BAPI to get the above list.
    Basically the above report is concatenation of report outputs of t-code CSD5 and CS15.
    Awaiting reply.
    Thanks.

    Hi venkatesh,
       You can use the BAPI
    BAPISDORDER_GETDETAILEDLIST
    to get list of all sales orders.
    Here is a lik which provides you BAPI'S regarding everything.
    [http://www.saptechies.com/sap-bapi-list/]
    Hope this will help you.
    Regards,
    Pavan.

  • Getting the variant name when the report program is run in background

    Hi All,
    How to get the variant name for the report program when run in background? My requirement is to create an email attachement with the name 'variant.XLS', where variant = selection screen variant, when the report program is run in background. The system field SY-SLSET holds the variant name only when run online.
    Any pointers to this will be highly appreciated.
    Thanks and regards,
    Nilesh.

    Hello Nilesh,
    Please find the algo:
    1. Call the FM: GET_JOB_RUNTIME_INFO to get the background job details.
    2. Select data from TBTCP using these details:
    DATA:
    FP_EVENTID   TYPE BTCEVENTID
    FP_EVTPARM   TYPE BTCEVTPARM
    FP_ACTIVE    TYPE BTCXPGFLAG
    FP_JOBCNT    TYPE BTCJOBCNT
    FP_JOBNM     TYPE BTCJOB
    FP_STEPCNT   TYPE BTCSTEPCNT.
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
        IMPORTING
          EVENTID                 = FP_EVENTID
          EVENTPARM               = FP_EVTPARM
          EXTERNAL_PROGRAM_ACTIVE = FP_ACTIVE
          JOBCOUNT                = FP_JOBCNT
          JOBNAME                 = FP_JOBNM
          STEPCOUNT               = FP_STEPCNT
        EXCEPTIONS
          NO_RUNTIME_INFO         = 1
          OTHERS                  = 2.
      IF SY-SUBRC <> 0.
    *   Error calling FM: GET_JOB_RUNTIME_INFO
      ENDIF.
    DATA: FP_VARIANT TYPE BTCVARIANT.
      SELECT JOBNAME JOBCOUNT STEPCOUNT VARIANT
      FROM   TBTCP
      INTO TABLE L_IT_TBTCP
      WHERE  JOBNAME   = FP_JOBNM
      AND    JOBCOUNT  = FP_JOBCNT
      AND    STEPCOUNT = FP_STEPCNT.
      IF SY-SUBRC = 0.
        SORT L_IT_TBTCP BY JOBNM JOBCNT STEPCNT.
        READ TABLE L_IT_TBTCP INTO L_WA_TBTCP INDEX 1.
        IF SY-SUBRC = 0.
          FP_VARIANT = L_WA_TBTCP-VARIANT.
        ENDIF.
      ENDIF.
    Hope this helps.
    BR,
    Suhas

  • A Function or BAPI to get Material Standard Price?

    Hi All,
    I need a Function or BAPI to get the Material Standard Price when the following Criteria is given;
    1. Material Code
    2. Plant
    3. Period
    4. Year
    5. Company Currency (Optional)
    I need only the Standard Price and Price Unit. Please give me a example with sample values.
    Thanks,
    Kishan

    Sri:
    I need only the Standard Price and Price Unit
    there is no specific FM for that.
    you need to write small select query in FM than use this custom FM into your program.
    Amit.

  • Hi i want to create BAPI to get approver of the employee

    hi i want to create BAPI to get approver of the employee
    in this  BAPI if there are two approver for that employee than i need both approver personal no.
    please help me
    thanks in advanced.

    Hi
    I doubt whether there is a direct Standard BAPI for that.
    The below report will get you the employees approver org position. Even if there are two approvers are there, it will display both the approvers position.
    *& Report  ZGD_TEST_HR_ORG_STR
    REPORT  ZGD_TEST_HR_ORG_STR.
       DATA: plvar            LIKE hrsobid-plvar.
      DATA: otype            LIKE hrsobid-otype.
      DATA: sobid            LIKE hrsobid-sobid.
      DATA: date             LIKE sy-datum.
      DATA: leading_position LIKE hrobject OCCURS 1 WITH HEADER LINE.
      DATA: org_agent        LIKE swhactor.
      DATA: lv_sw_vapos      TYPE xflag,
            lv_subrc         TYPE sy-subrc.
      DATA spfli_wa TYPE spfli.
      DATA carrid_buffer TYPE spfli-carrid.
      IF plvar IS INITIAL.
        CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR'
          IMPORTING
            act_plvar       = plvar
          EXCEPTIONS
            no_active_plvar = 1.
        IF sy-subrc > 0.
          MESSAGE e300(5w) RAISING no_active_plvar.
        ENDIF.
      ENDIF.
    IF otype IS INITIAL OR sobid IS INITIAL.
          otype = 'US'.
          sobid = sy-uname.
      ENDIF.
      CALL FUNCTION 'RH_GET_LEADING_POSITION'
        EXPORTING
          plvar              = plvar
          otype              = otype
          sobid              = sobid
          date               = sy-datum
          auth               = ' '
          consider_vac_pos   = space
        TABLES
          leading_pos        = leading_position
        EXCEPTIONS
          no_lead_pos_found  = 1
          OTHERS             = 2.
       IF sy-subrc > 0.
        MESSAGE e802(5w) WITH otype sobid
                         RAISING no_lead_pos_found.
      ELSE.
        LOOP AT leading_position.
          write :  / leading_position-otype,
                     leading_position-objid.
        ENDLOOP.
      endif.
    Hope it helps you

  • How to get the VARIANT name in the program

    Hi Guys,
    Can somebody tell me how to get  the VARIANT name in a program.
    I have to perform some code with specific variant only. So I want to check in program which variant has been used to call the program.
    Thanks,

    Hi,
    Variants are stored in table VARI and VARID.
    You can use RS_ALL_VARIANTS_4_1_REPORT to get all the variants for a report program.
    please check out the link below it will be helpful to you
    Re: Programs for a transaction variant
    Hope this helps.
    ashish

  • BAPI To get GL Line items (Open Item Managed GL)

    Hi,
      I am looking for a BAPI to get GL open line items that usually I can download from FBL3N.  This is required for Open Item managed GLs. The BAPI can be similar to that of BAPI_AP_ACC_GETOPENITEMS or BAPI_AR_ACC_GETOPENITEMS.
    Thanks in advance for your response.
    Best Regards,
    Dusmanta

    Hi Maple,
      Try out with the following BAPI's:
    BAPI_GL_ACC_GETDETAIL  : G/L Account Details
    BAPI_GL_ACC_GETLIST       : List of G/L Account for each company code
    Hope this will be helpful.
    Regards,
    A.Fahrudeen

  • Need FM/BAPI to get how many line items per given FI document...

    Hello Experts,
    IS there an available FM or BAPI to get how many line items there is for a given
    FI document? We are avoinding BSEG because of the performance.
    Hope you can help me guys. Thank you and take care!

    Hi,
    Not sure if there is a specific FMs or BAPIs whose specific purpose is to just count FI document lines. But you can use a number of FMs to read an FI document.
    i.e. FI_DOCUMENT_READ - pass the document keys (BUKRS, BELNR, GJAHR) and retrieve the T_BSEG table to get the document lines. Then you can just use DESCRIBE statement to get the number of lines in T_BSEG.
    Also, based on experience, I never had any problems with BSEG as long as I am providing the complete keys for an FI document (BUKRS, BELNR, GJAHR). But if you are trying to avoid BSEG, you can use the secondary index tables like BSIS , BSAS, BSAD, BSID, BSIK, BSAK to improve performance.
    Regards,
    Oscean Tortona

  • Function Module/Bapi to get Customer down payment in F-28/F-29

    Hi All,
    I need Function Module or Bapi to get the Customer down payment which have been posted in F-29/F-28 transactions.
    Please do needful.
    Regards
    Madhu

    hi
    try this
    BAPI_CR_ACC_GETDETAIL
    cheers
    S.Janagar

  • Get the variant name of the job shceduled in the Background

    Hello All,
    I am shcduling printout of the Payment Document from F110 transaction code in background.
    My requirement is to get the variant name.
    F110 create background job for printing and when i debug it the value of sy-SLSET it is coming some
    junk value like &000000012.
    I can not schedule this job from  SM36. I have to go for F110 only.
    Is there any way to get the variant name of the background job.
    Kindly help.
    Regards
    Sachin

    Hi,
    I am running F110 by maintaning three variant at the same time.
    So my program will run three times for these three variant.
    Depending upon the variant i have to perform some validations.
    So I want to know the variant name for each one run.
    I am maitaing the variant but when i checked the system field sy-SLSET it is coming some junk value '&000000013'.
    How to get the variant name from this.
    Regards
    Sachin Yadav

  • How to get the variants for LAV LIST or GRID?

    Hi,
    How to get the variants which are stored in table like JVSO1, using function module REUSE_ALV_VARIANT_F4 ?
    Thanks.

    Hi,
    Delcare
    DATA : st_variant  TYPE disvariant,       "Work area for variant
           st_variant1 TYPE disvariant.       "Work area for variant
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-041.
    PARAMETERS :     p_varnt TYPE  disvariant-variant MODIF ID md8.  "Variant
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varnt.
    *--Local Variables
      DATA: l_exit(1) TYPE c.                "ALV exit
    *--Call the function module to display the list of Variants
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant    = st_variant
          i_save        = c_save
        IMPORTING
          e_exit        = l_exit
          es_variant    = st_variant1
        EXCEPTIONS
          not_found     = 1
          program_error = 2.
    *--Check Subrc
      IF sy-subrc <> 2 AND l_exit IS INITIAL.
        p_varnt = st_variant1-variant.
      ENDIF.
    start-of-selection.
      IF NOT p_varnt IS INITIAL.
        CLEAR st_variant1.
        MOVE st_variant TO st_variant1.
        MOVE p_varnt TO st_variant1-variant.
    *--Call the function module to check the variant exist
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            i_save     = c_save
          CHANGING
            cs_variant = st_variant1.
        st_variant = st_variant1.
      ENDIF.
    DATA : lv_repid TYPE sy-repid.
    *--Pass the Report name
      lv_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = lv_repid
          it_fieldcat             = it_fcat
          is_variant              = st_variant
          it_events               = it_events
          i_save                  = 'A'
          i_callback_user_command = 'USER_COMMAND'
        TABLES
          t_outtab                = it_zsd_ra
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
      IF sy-subrc <> 0.
        MESSAGE e368(00) WITH 'Alv Display failed'(044)  .
      ENDIF.
    regards,
    Prashant

  • BAPI to get PO details of a VENDOR

    Hi All,
    Is there any BAPI to get the PO details of a VENDOR ?
    While executong the BAPI it should ask for VENDOR number and for that vendor number it should show all the PO numbers.
    Let me know if their any BAPI similar to the above requirement.
    Thanks & Regards,
    Sabu

    Hi,
    try this FM  WRB_PO_GET_DETAILED_VENDOR
    here u'll get PO Detail of that vendor and other detail also.
    hope it'll help u.
    Regards,
    Sneha.
    Edited by: sneha kumari on Jul 8, 2009 2:52 PM

  • BAPI to get Invoice Details based on PO Number

    HI,
    Is there any BAPI to get Invoice Details based on PO number. If so could you pls let me know that.
    Regards,
    Ramesh

    Hi Ramesh  ,
    there is no Direct BAPI to get the List of Invoices ,But based on the Vendor list u can get the List .
    pass Vendor list , Document Dates.
    <b>BAPI_INCOMINGINVOICE_GETLIST</b> for more info check the Documentation of this FM.
    Regards
    Prabhu

Maybe you are looking for

  • Time Machine backup & External Hard drive issue

    Hello, I have a MBP running Snow Leopard. I use two external Hard drives for Time Machime backups. The first one Seagate2TB is working with TM just fine.  The second one Seagate3TB worked with TM just fine for about a year until two days ago. Since t

  • Local flash pop up window HELP!

    Hi, I'm trying to open an html popup window locally from a flash button. Can anyone help? The issue seems to be specific to local machine because I have managed to get this working on the web. Unfortunately the project we are working on will also be

  • EQ changes

    I am sure this is a bug: in Music settings I have EQ if Off / Sound Check is On / Volume Limit is OFF and yet, when I select the Randomize button in iPod/Music (iPhone4), the sound changes (equalizer settings?). Either way it doesn't make sense!! And

  • No Sound in Project with Imported MPEG 4

    I am new to iDVD. My first project is to just make a video from a short MPEG 4 movie clip. I imported the movie into iDVD and dropped it in. It plays fine except there is NO sound. When I press the select button in the on screen remote it plays the c

  • Invoice Printed with J1IP showing all acessable,bed sed zero

    Hi, gurus In one invoice preview with J1IP is show all values zero, but in VF03 or in sales order all the values are showing correctly, could any please give some suggession..what is wrong in this invoice. Thanx! Regards, Rizwan