Function module to get GL statement

Hi...
Is there any function module or BAPI to get GL statement .....
Thanks and Regards
..Ahsish
Moderator message - Please do not ask the forum to do your work for you - post locked
Edited by: Rob Burbank on Jun 1, 2009 10:29 AM

The next part is:
LOOP AT ITAB.
WRITE :/5 C AS CHECKBOX,
         ITAB-SAKNR UNDER 'G/L ACCOUNT CODE',
         ITAB-TXT50 UNDER 'DESCRIPTION'.
HIDE : ITAB-SAKNR, ITAB-BELNR, ITAB-TXT50, ITAB-BUZEI, ITAB-DMBTR.
DBCNT = DBCNT + 1.
ENDLOOP.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE SY-LSIND.         "TO PRINT TOP OF PAGE ON PROPER SECONDARY LIST
WHEN '1'.             "FIRST SECONDARY LIST
WRITE :/ 'COMPANY NAME : xxxLtd.' COLOR 1.
WRITE :/15(35) SY-ULINE.
SKIP.
WRITE :/20 'PROGRAM NAME :  GL ACCOUNT DOCUMENTS FOR ' COLOR 6 INVERSE ON.
WRITE :/20 'USER NAME    :  ' COLOR 6 INVERSE ON ,
        SY-UNAME COLOR 6 INVERSE ON.
WRITE :/45 'PAGE : ', SY-PAGNO.
WRITE :/45 'DATE : ', SY-DATUM.
ULINE.
WRITE :/5 'GL A/C NO.' COLOR 5,
        17 'A/C DESCRIPTION' COLOR 5,
        65 'DOC. NO.' COLOR 5,
        78 'ITEM' COLOR 5,
        85 'DOC. AMOUNT Rs.' COLOR 5.
ULINE.
SKIP.
WHEN '2'.              "SECOND SECONDARY LIST
WRITE :/ 'THIS IS SECOND SECONDARY LIST' COLOR 6.
SKIP.
WRITE :/10 'GL ACCOUNT NO.' COLOR 5.
SKIP.
ENDCASE.
AT LINE-SELECTION.
CASE SY-LSIND.
WHEN '1'.           "FIRST SECONDARY LIST
CNT = 0.
DO DBCNT TIMES.
B = SY-INDEX + 5.
    READ LINE B FIELD VALUE C.
    IF C = 'X'.
    CNT = CNT + 1.
       IF CNT > 2.
       MESSAGE E000(ERROR) WITH 'U HAVE SELECTED MORE THAN TWO RECORDS'.
       ENDIF.
       WRITE :/ ITAB-SAKNR UNDER 'GL A/C NO.' ,
                ITAB-TXT50 UNDER 'A/C DESCRIPTION',
                ITAB-BELNR UNDER 'DOC. NO.',
                ITAB-BUZEI UNDER 'ITEM',
                ITAB-DMBTR UNDER 'DOC. AMOUNT Rs.'.
       HIDE : ITAB-SAKNR.     "HIDE THE VALUE FOR SECOND SECONDARY LIST
    ENDIF.
ENDDO.
IF CNT IS INITIAL.
MESSAGE E000(ERROR) WITH 'PLEASE SELECT RECORD'.
CLEAR C.
CLEAR CNT.
ENDIF.
WHEN '2'.          "SECOND SECONDARY LIST
WRITE :/ ITAB-SAKNR UNDER 'GL ACCOUNT NO.'.
ENDCASE.
This is 2 parts...chk if this helps u in any way.
Regards,
Nikhil.
Edited by: Nikhil Kanegaonkar on Jun 1, 2009 1:37 PM

Similar Messages

  • Function module to get GL account statement

    Is there any function module to get GL account statement ....
    ..Thanks
    .Ashish

    hi
    please search in SDN
    Check tihs link ,May be it will useful
    [Re: Function module to get GL statement]
    Thanks

  • Function Module to get the TIMESTAMP

    Hi,
    Is there any function module to get the TIMESTAMP as Outout , if i give input Time and Date.
    Or,
    If I go for the concatenate statement.. Do I need to concate the commas in to the target field?
    Because,
    I am not getting the proper result with this concatenate statement where I concatenated the YYYYMMDDHHMMSS in to the DECIMAL 15 Variable.
    Thanks,
    Naveen Inuganti.

    Hi use
    IB_CONVERT_INTO_TIMESTAMP' or IB_CONVERT_FROM_TIMESTAMP'
    Example:
    * Declaring the work variables.......................
    DATA :
      timestamp like TZONREF-TSTAMPS,
      time      like sy-uzeit,
      date      like sy-datum.
    * The following function module is used to convert the
    * time and date into GMT timestamp
    CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
      EXPORTING
        i_datlo           = sy-datum
        i_timlo           = sy-uzeit
        I_TZONE           = 'INDIA'
    IMPORTING
       E_TIMESTAMP       = timestamp.
    * The following function module is used to convert the
    * above obtained timestamp to PST time zone date and time.
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        i_timestamp       = timestamp
        I_TZONE           = 'PST'
    IMPORTING
        E_DATLO           = date
        E_TIMLO           = time.
    write :/ 'Date and Time at PST zone is ',date, time.

  • Function module for getting Vendor Address details

    Hi,
    Im new to this group,and new to ABAP
    plz hep me out by solving ABAP Query...
    i want to generate a report for getting Vendor Details
    like Vendor address,Ph num and Email
    input fields are Company code,country key and Account Group.
    im Using Smart Forms for this..
    but im not getting the Exact Function module to get All Required Details..
    regards
    Smitha

    thanks for ur quick reply...
    SELECT SINGLE LIFNR
      FROM LFB1
      INTO V_LIFNR
      WHERE BUKRS EQ V_BUKRS.
      CALL FUNCTION 'VENDOR_READ'
        EXPORTING
          i_bukrs         = V_BUKRS
          i_lifnr         = V_LIFNR
        EXCEPTIONS
         NOT_FOUND       = 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.
    this is the code i have written...
    but my problem is there no table in the Function module....
    for Example...
    CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
        EXPORTING
          i_plnty            = 'Q'
          i_plnnr            = V_PLNNR
          I_PLNAL            = V_PLNAL
          i_sttag            = V_DATUV
       TABLES
        T_PLMKB_TAB        = IT_TAB
    i want the function modules with tables and proper input...

  • Function module for getting the open qty

    HI experts,
                      I have a PO quantity(EKPO_MENGE).against same PO and item item(EBELN and EBELP) if Goods receipt has happened (MSEG_ERFMG) then i need to calculate the open qty.and also by netting the open quantity if multiple GRs has done against the same PO and item.
    Can you suggest any function module to get this open PO quantity.

    Hello,
    Hope this link can help you.
    [Po Open Quantity;
    Thanks
    Jayant

  • ABAP - Function module to get the number of working days between 2 days

    Hi gentlemen,
    I have been asked to produce a report that gives the number of working days between 2 days, based on a calendar.
    I didn't find anything...
    Has any of you already written a function module to get this ?
    A great thanks in advance.
    Jacques Lagrif

    Hi ,
    you can try this ,
    when you require the number of working days between D1 and D2
    Total No of Days will be
    D2 - D1
    No of holidays between D1 and D2 , use the FM HOLIDAY_GET
    Pass the From date , to date , and the factory calendar to get the of Holidays
    Total no of days - Number of Holidays will your Working days
    Regards,
    Sathya

  • Function Module to get the Screen

    Hello All,
    Can anybody provide me a Function Module to get the Screen by giving Program Name and Screen Number.
    Thanks,

    Hello
      check FM  RS_IMPORT_DYNPRO
       CALL FUNCTION 'RS_IMPORT_DYNPRO'
          EXPORTING
            dylang = pmlang
            dyname = programname
            dynumb = screen
          IMPORTING
            header = header
          TABLES
            ftab   = ifields
            pltab  = iflowlogic.
    or you have to create join b/w table reposrc and tadir .
    Thanks
    Anirudh

  • Function module to get the details (WTGBTR) from table COEP

    Hi all,
    I have to select the data from COEP table based on OBJNR, KSTAR and KOKRS.I want  WTGBTR from COEP Table.
    Right now Iam using select query.But i want to use function module.
    Can any one please tell me is there any function module to get  WTGBTR from COEP table.
    Thanks.

    This'll work:
    SELECT objnr bukrs wtgbtr
      INTO CORRESPONDING FIELDS OF TABLE gt_coep
      FROM coep
      WHERE lednr = '00'                               "<========
        and kokrs = '1000'
        AND kstar IN ('0000810001' , '0000830001')
        AND objnr IN s_objnr
        AND bukrs IN s_bukrs.
    Rob

  • Function  module to get pernt by passinf objid and otype

    Hi,
    Help me to find any function module to get pernr by using objid and otype.or table name from which we can get pernr by passing objid and otype.
    thanks,
    satish.

    You are talking about on the OM side and obtain the perner via object P?
    You can through a few method. One is using evaluation path. There is a function module called HR_STRUC_GET which allow you to pass evaluation path to get the result.
    Using that, you could create a simple evaluation path from position (object s) to person (object p). The object ID of object P is your pernr.
    Unless you have central person functionality, that might no longer be the case.

  • Function module to get table description

    Is there any function module to get table description on passing table name

    Hi,
    We need to use : 'G_RW_TABLE_DESCRIPTION_GET' function module.
    we pass the table name and the language.
    call function 'G_RW_TABLE_DESCRIPTION_GET'
        exporting
          rw_table = p_table
          langu    = sy-langu
        importing
          tab_text = l_tabtext
        exceptions
          others   = 1.
    thanx.

  • Table or Function module to get Internal order planning and Cost element pl

    Dear All,
    Table or Function module to get Internal order planning and Cost element planning.
    Internal order planning from T-code KO13.
    Thanks in advance.
    Regards,
    Ravi
    Edited by: Ravi Chandra on Sep 13, 2011 8:08 AM

    BPEJ, BPEG, BPEP

  • Function Module to get pernr number based on first name and last name

    Hi All,
    What is the Function Module to get pernr number based on first name and last name.
    Could you please help me.
    T@R.
    Vidya

    hi Vidya,
    you can get perner from PA0002 based on firs name and last name.
    use select query and get perner.

  • Function module to get customer balances

    Hello , is there a FM to get customer balances?

    hi Sooness,
      i am not sure but you can check with the BAPI:
    BAPI_AR_ACC_ GETKEYDATEBALANC E
    function module to get AR (customer balance).
      and also have a look in the link below:
    http://www.sapbapi.com/bapi-list/
    http://www.erpgenie.com/abap/functions.htm
    With luck,
    Pritam.

  • Function module to get BOM which WOULD be created if I open a production

    Is there a function module to get the BOM which WOULD be created if I open a production order?
    note that I don't have the produciton order created.
    I already tried with the FM CS_BOM_EXPL_MAT_V2 and CSAP_MAT_BOM_READ.
    I debuged the CO01, but I did not find it.
    This BOM should include materials which are under a phantom component.
    Edited by: Rodrigo Pelos on Jul 20, 2011 6:55 PM

    Hi Greetson Shunmugasundaram,
    thanks for the reply, but for the FMs CO_SD_RESB_FROM_BOM_CREATE and CO_SD_NEW_BOM_ASSIGNEMENT it's necessay to have an production order but I don't have it. And with CS_ALT_SELECT_COUPLED_PRODUCT I could not get a BOM.
    Let me explain in more details how I'm going to use this information, I think I was not clear in my post.
    I'm creating a report to compare the BOM of a production order with BOM which would be created today if I open a production order.
    Then I can check if there was changes in the reservation (RESB) of the production order. If this changes happened, how many pieces. I'll check also if there was differences in consumption, because during the production order confirmation it is possible to make changes.
    I would not like to make the BOM explosion "manually" because there are too many variables in the BOM like phantom, alternative, scrap and so on, but I don't know if the function module that I'd like to use exists.

  • Function Module for getting address from address number

    Hi all,
    Is there any function module for getting address from address number. kindly reply.
    regards,
    siya

    HI,
    just try this function module:
    CALL FUNCTION 'HR_GET_ADDRESS'
        EXPORTING
          ankey          = ankey
          anart          = anart
          molga          = '01'
        IMPORTING
          address_detail = adr_data
        EXCEPTIONS
          not_found      = 1
          OTHERS         = 2.
    HOPE IT WILL HELP YOU
    regards
    rahul

Maybe you are looking for

  • TX and Wi-Fi. My TX doesn't have WPA protocol

    I've got a functioning wireless network at home (Linksys DIR-655), and several machines that successfuly connect.  My router is using configures as follows: Security mode:  WPA-Personal, WPA Mode:  WPA Only Cipher type:  TKIP & AES 802.11 Mode:  b/g/

  • Variable issue, not declaring

    Hi, i've an issue on Production Environment. When i use a variable (both declaring or setting) i retrieve an error. "com.sunopsis.core.SnpsInexistantObjectException: SnpSessTaskLog.getObjectByIdent : SnpSessTaskLog does not exist" I've checked agent

  • What are the differences between JSF1.1 and JSF 1.2

    As I am using JSF 1.1 version wanted to know what are the new features 1.2 version is providing.

  • How do you cut and paste with Firefoc for mobile?

    How do you the icons for cutting and pasting in Firefox Sync?

  • Dhcp giving out the same ips? wtf?

    my wireless router seems to get confused sometimes... every now and then, when I restart my wireless, my girlfriend's computer (windows) pops up a little "there is an IP address violation" and she has to get a new address any clues?