Function modules to read Time clusters B1 and B2 from PCL1 and PCL2
Hi All
Are there any function modules or macros to read time clusters B1 & B2?
I want to read time data in the clusters for reporting purpose.
Regards,
Rupesh Mhatre
You can also call the FM HR_TIME_RESULTS_GET and get the exact cluster you need from B2 like WPBP, ZE, SALDO etc.
Otherwise if you want to use the older FM declare the GET_TBUFF and GET_BUFFER_DIR as of below structure.
DATA: BEGIN OF TBUFF OCCURS 5000. "XPMK014785
INCLUDE STRUCTURE PCL1.
DATA: SGART(2),
END OF TBUFF.
DATA: BEGIN OF BUFFER_DIR OCCURS 2000, "XPMK014785
SGART(2),
CLIENT LIKE PCL1-CLIENT,
RELID LIKE PCL1-RELID,
SRTFD LIKE PCL1-SRTFD,
NTABX LIKE SY-TABIX, "pointer auf aktuellen satz
OTABX LIKE SY-TABIX, "pointer auf alten satz (falls vorhanden)
NNUXT LIKE PCL1-SRTF2, "anzahl folgesaetze aktueller Satz
ONUXT LIKE PCL1-SRTF2, "anzahl folgesaetze alter Satz
ofset(3) type p, "offset innerhalb eines entry
END OF BUFFER_DIR.
INT_TIME_RESULTS should be of type PTM_TIME_RESULTS.
Regards
Ranganath
Similar Messages
-
Help required in creating function module which reads payroll clusters.
Hi ,
We have a requirement where in we need to create a function module for reading a sequence of tables from payroll clusters. This function module does two functions:
1.Read the payroll results from one system.
2.write the payroll results to other system.
please do the needful as soon as possible.
Thanks in advance.
Regards,
Durga.hi
Refer to the below thread
Programming with Clusters for HR-Payroll
Regards
Sameer -
Function module to read error message provided message class and mssg no.
Hi experts,
I am trying to populate my database table with the error message.
The error message as comming form standard code in an ITAB.
I am getting the error class and message number.
Can any body please tell me any function module to read the error.
Or is there any way to populate the database table with the error message.
Regards,
Sandipan.Hi,
You can use the Function module mentioned below.
call transaction 'VA42' using bdcdata mode w_mode
update w_synch
messages into it_mesgtab.
loop at it_mesgtab into wa_mesgtab where msgtyp ca 'EA'.
endloop.
if sy-subrc <> 0.
read table it_mesgtab into wa_mesgtab index 1.
endif.
call function 'MESSAGE_TEXT_BUILD'
exporting
msgid = wa_mesgtab-msgid "Messg class
msgnr = wa_mesgtab-msgnr "Messg No.
msgv1 = wa_mesgtab-msgv1
msgv2 = wa_mesgtab-msgv2
msgv3 = wa_mesgtab-msgv3
msgv4 = wa_mesgtab-msgv4
importing
message_text_output = it_err-sapmessage.
Append it_err.
Regards,
Srinivas -
Function modules to read ibase at runtime
Hi guru's,
Is there any function modules to read ibase at run time if yes please send those function modules its urgent please please.
regards
naveen kumaranswered
-
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 -
Function module to read customer balances for current fiscal year.
Hi,
Could anyone please tell me about the function module which would display the customer credit balances from the FD10n transaction code for teh current fiscal year. that means from july 2010 to july 2011.Hi,
use the BAPI 'BAPI_AR_ACC_GETCURRENTBALANCE'
CALL FUNCTION 'BAPI_AR_ACC_GETCURRENTBALANCE' "Closing balance of customer account in current fiscal year
EXPORTING
companycode = " bapi3007_1-comp_code Company code
customer = " bapi3007_1-customer Customer
IMPORTING
actual_balance = " bapi3007_9 Carry forward balance and balance
return = " bapireturn Return Code
. " BAPI_AR_ACC_GETCURRENTBALANCE
This method provides a customer's balance for the current fiscal year.
It displays both the balance of standard transactions and the total balance of standard transactions and all special general ledger transactions.
Read the Documentation of the BAPI.
Regards,
Dhina.. -
Function module to read Comma Seperated File (CSV)
Hi,
Is there any Function module to read CSV file from presentation server or Application server?
Regards,
MadhuHi madhukeshwar,
1. Exactly for this purpose,
i have developed an independent FORM
where we give inputs
a) file name (eg. abcd.txt)
b) separator (eg , COMMA in your case)
c) internal table (eg. t001)
2. It will provide the data
in proper format
(no matter what the separator)
(it can work with any kind of separator)
3. just copy paste in new program.
REPORT abc.
change your table declaration and file name
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
PERFORM myupload TABLES t001 USING 'd:\t001.txt' ','.
BREAK-POINT.
in debug see t001
INDEPENDENT FORM
FORM myupload TABLES orgtab
USING filename separator.
Data
DATA : BEGIN OF itab OCCURS 0,
myline(1000) TYPE c,
END OF itab.
DATA : extension(5) TYPE c.
DATA : name(100) TYPE c.
DATA : newfilename TYPE string.
Step 1
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
TABLES
data_tab = itab.
Step 2
LOOP AT itab.
REPLACE ALL OCCURRENCES OF separator IN itab-myline WITH
cl_abap_char_utilities=>horizontal_tab.
MODIFY itab.
ENDLOOP.
Step 3
DATA : path LIKE pcfile-path.
path = filename.
CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
complete_filename = path
CHECK_DOS_FORMAT =
IMPORTING
DRIVE =
extension = extension
name = name
NAME_WITH_EXT =
PATH =
EXCEPTIONS
invalid_drive = 1
invalid_extension = 2
invalid_name = 3
invalid_path = 4
OTHERS = 5
Step 4
newfilename = filename.
REPLACE name IN newfilename WITH 'temp'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = newfilename
TABLES
data_tab = itab
FIELDNAMES =
Step 5
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = newfilename
has_field_separator = 'X'
TABLES
data_tab = orgtab.
ENDFORM. "myupload
3.
regards,
amit m. -
Function module for reading payroll results
HI,
I need a function module for reading payroll results RT table.
Import parameters are personal number, payroll area, and payroll period.
Export should be RT table.
Regards,
Wasim AhmedHai Wasim
Check the following Code
data: payroll_cluster like t500l-relid.
call function 'PYXX_READ_PAYROLL_RESULT'
exporting
clusterid = payroll_cluster
employeenumber = pernr-pernr
sequencenumber = payroll-evp-seqnr
READ_ONLY_BUFFER = ' '
READ_ONLY_INTERNATIONAL = ' '
CHECK_READ_AUTHORITY = 'X'
IMPORTING
VERSION_NUMBER_PAYVN =
VERSION_NUMBER_PCL2 =
changing
payroll_result = payroll_us
exceptions
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
others = 8
if sy-subrc <> 0.
if sy-subrc <> 0.
write: / 'Fehler beim Laden des US Abrechnungsergebnisses'(003).
write: /'zu Personalnummer'(008), pernr-pernr,
'bei Sequence-Number'(012),
payroll-evp-seqnr.
write: / 'Fehlercode ='(004), sy-subrc.
endif.
endif.
Thanks & regards
Sreenivasulu P -
Function module for reading service line items of a po
function module for reading service line items of a po.............I want to read data from eslh and esll tables to getthe service line details.....
My requirement is if the item category is 9 I need to print the service line items. So I wan to read the data of service line items from a function module. I am not able to find a fm which fetches both elsh and esll data...Hi oskchaitanya ,
use bapi BAPI_PO_GETDETAIL1.
Regards
REA -
Function module to read the expired useful life of asset
Hi,
Is there a function module to read the expired useful life of asset. We are using the depriciation start date to calculate the expired useful life of asset, but the fiscal year shift and matching the calendar year with fiscal is causing the logic to give a month difference between the calculated value and the value in the asset.
Please let me know if there is a Function module or BAPI for getting the values. Kindly provide example for the function module call too.
Regards,
Prabaharan.GHi,
Check the following function modules.
AISC_CALC_EXPIRED_USEFUL_LIFE.
Check the following link it might be of some help to you.
Re: asset useful life
Regards,
Ram. -
Function module to read data from a SPO
Hi guys,
Inside a transformation a have a rule, ABAP routine type, in wich I need to read data from a SPO (semantically partitioned object). Is there an ABAP function module or Class that allows to read data from a SPO?
The SPO from wich I need to read the data is DSO based.
Thanks in advance.
David.Hi David,
The normal procedure is using Function Module RSDRI_INFOPROV_READ. However, according to the documentation it only works for DSOs, InfoCubes and MultiProviders.
Could you access as a work-around a MultiProvider? Or use any logic to first determine which PartProvider of the SPO-based DSO or InfoCube is required and then use the Function Module to read the data?
Best regards,
Sander -
Function Modul for read field label
hi all
i search a function modul for read the field label from data element.
Example for data element matnr, i must have field label text material.
Thx abap_beginHi,
If you give input parameters type, field and table you get data element using
RP_PRINT_GET_DATA_ELEMENT
Try also
KL_TABLE_INFO_GET
But not sure if this futfill your requirement... -
Function Module to Read data from ESLH & ESLL
Hi All,
Presently i am working on the Service Purchase Order
I have to get the data from the Service Master tax conditions which is storing in ESLH & ESLL database tables.
So is there any Function Module to get the data.
regards:
Sridhar JHi David,
The normal procedure is using Function Module RSDRI_INFOPROV_READ. However, according to the documentation it only works for DSOs, InfoCubes and MultiProviders.
Could you access as a work-around a MultiProvider? Or use any logic to first determine which PartProvider of the SPO-based DSO or InfoCube is required and then use the Function Module to read the data?
Best regards,
Sander -
Function module to read Lock objects
Hi all,
I'm doing a generic search program for all the objects..
Is there any function module to read Lock objects....
that is to know wat r all the tables and Lock parameters are there in a lock objectHi Gayathri
Please read the table DD25L with AGGTYPE = 'E' to get all the lock object names in the field VIEWNAME. Use these lock object to read the table DD27S to get the fields present in these lock objects.
Hope this helps !
Regards
Ranganath
PS : Reward points for all useful answers ! -
Function Module to Read Hierarchy Node
Hi,
Is there is any function module to read from existing Node of Hierarchy (includes sub Nodes, including all its children) similar to RRH1_HIERARCHY_HELP_VALUES_GET.
Requirement is to create custom Hierarchy from existing Hierarchy (eg: 0WBSELMNT - has XXX Hierarchy, In there is (2nd level) HIER_NODE say yyy. Now read yyy node and create custom Hierarchy to 0WBSELMNT ).
If we know the Functional modules if any then we can manipulate in ABAP code and write to flat file and upload same file with different Hierarchy Name.
Thanks in Advance,
MadhuHi,
Pls try this:
RSNDI_SHIE_STRUCTURE_GET3
RSSH_HIERARCHY_READ
RSAR_HIERARCHY_GET
Looking up BW-Hierarchy with ABAP
Regards
CSM Reddy
Maybe you are looking for
-
Good evening everyone... First off I wanted to say that I'm ****** off and even more frustrated by my MacBook Air, god dammit this machine was expensive and now all I get are problems. But enough of that, let me get to the point already. So I made a
-
Global Variable in Runtime Prompt
Hi All, I have a Global Varialbe with limits @Level_0_Descendants("YearTotal"), but When I launch this Business Rule in the prompts I am able to see all the Period dimension members. I have used the same varialbe in other Busine Rule, it is giving pe
-
[SOLVED] "early kms" doesn't work.
Hi, first time poster. Arch is working the way I want it, so if this doesn't get solved its not a showstopper or anything. But I figure someone here will know whats wrong, so I'll ask. I finally decided to try setting up a splash screen. Plymouth wik
-
Cost price calculation of raw material
I want to know how cost price of raw material is calculated in sap. Is it when ever price changes we have to go to each material code and change the price or we can have our own policy? Edited by: gururaj gadgoli on Sep 18, 2008 1:05 PM
-
When I plug in an USB stick, my MacBook Air disables all USB devices
When I plug in an USB device, my MacBook Air disables all USB devices and the keyboard. It looks like it would freeze, but all applications still work. It just does not respond to neither keyboard nor mouse. The only solution is to force-restart it.