Function modules for table operations
Hi!
I found the module "rfc_get_table_entries", can s.o. tell me some other standard function modules to work with database information?
rfc_get_table_entries returns a concatenated Database line, it would be better for me to get a table with the correct structure.
With best regards
Björn K.
Björn,
how about RFC_READ_TABLE? you'll receive the structure in FIELDS and the content in DATA.
if you know the fields you want to receive, you can add them in the FIELDS table as input parameter.
kr, achim
Similar Messages
-
Function module for table control
Hi experts,
I am creating the BDC program, In that I need to select the particular item from the table control say for example item 0010 or 0020 based on the input file and need to process from there.
Is there any function module to select the particular item by passing item no say 0010 or 0020.
Thanks in advance
saiHi
I suppose there is no function module for table control.
below solution might be useful to you.
1) Do BDC recording for the table control with each condition you would like to incorporate in your program.
2) copy the code of Table Control recording in your program and place the code in Loop of internal table.
3) based on the condition call the respective BDC recording of the table control
4) By the above steps you can manage the table control based on the condition.
Regards
Santosh Kumaar.M -
Function Module for Routing -operation Selection
Dear Gurus/Friends
Iam in one development that has to call the Operation number like in MFBF for MileStone Confirmation
Is there any function Module Available
Prabakaran K
Edited by: prabakaran k on May 12, 2008 3:26 PM
Edited by: prabakaran k on May 12, 2008 3:26 PManswered
-
Function Module for Table history
Hi,
We have requirement, to send changes to texts (Ex: Company Code texts) to the third party system. I need to write a program which will run periodically and send the changes to the external system.
What would be the best approach to do this?
Is there any function module which I can use to read the change history on any table?
Thanks
VVCheck the FMs:
CHANGEDOCUMENT_READ_HEADERS Change document: Read change document header
CHANGEDOCUMENT_READ_POSITIONS Change document: Read change document items
Regards,
ravi -
Function Module for .xlsx to Internal table
Hi Gurus,
Please let me know if there is any function module for .xlsx to internal table.
Kind regards,
VarunHi,
try the below FM's
ALSM_EXCEL_TO_INTERNAL_TABLE
TEXT_CONVERT_XLS_TO_SAP
Thanks,
Vinayaka -
Need functional module or table for user type
Hi all,
I need table or a functional module for getting the user type. plz helpHi,
Can you explain your requirement in a bit more detail. You can also provide all the relevant information regarding this topic.
Hope this will help.
Thanks,
Samantak. -
Urgent: creation function module for chvw table
hi,
I want to make Function Module for the fields in which i have to display the production order and batch numbers.plzz tell me how to create for it.Hi Everybody,
About how to use this function Does anyone have an idea?
I've found it.
call function 'FI_DOCUMENT_READ'
exporting
i_awtyp = 'VBRK'
i_awref = vbfa_tab-vbeln
i_awsys = vbrk-logsys
i_bukrs = vbrk-bukrs
i_gjahr = vbrk-gjahr
tables
t_bkpf = xbkpf
t_bseg = xbseg
exceptions
wrong_input = 1
not_found = 2.
But this is not enough.
Best Regards Rasim. -
Rfc enabled function module for the updating the database table
Hi,
I need one rfc enabled function module for the updating the database table from the legacy system.currently i am using the rfc_read_table to read the database table.similarly i need for the update.Hi
I believe you need to create one by yourself
Max -
How to create Function Module with TABLE parameter (for internal table)
Hi Guys,
I am trying to create a function module by using TABLE parameter. I have to pass an internal table to this function module for processing.
But it saying : TABLES parameters are obsolete!
And I am not going further.
Please suggest any work arround.
ThanksHi,
create a table type in SE11..
Then use that in your function module importing/exporting/changing parameter for passing internal tables..
Thanks,
Naren -
How to create ENQUEUE function module for s567 table
Hi Experts,
Anyone Plz tell the steps how to create a ENQUEUE function module for the table s567.
Its somewht urgent, plz help me.
<REMOVED BY MODERATOR>
Mohana
Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:21 PMHi,
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
Technicaly:
When you create a lock object System automatically creat two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
You have to use these function module in your program.
Hope this will give a basic idea.
Regards
Sudheer -
Function module for BSEG table
Hi Guru's,
SELECT bukrs
belnr
gjahr
budat
monat
waers
awkey
FROM bkpf
INTO TABLE i_bkpf_data
WHERE bukrs EQ pa_bukrs AND
budat IN so_budat.
SORT i_bkpf_data BY bukrs belnr gjahr.
IF i_bkpf_data[] IS NOT INITIAL.
SELECT bukrs belnr gjahr koart dmbtr wrbtr pswsl
kokrs kostl hkont aufnr lifnr ebeln buzei shkzg
FROM bseg
INTO TABLE i_bseg_data
FOR ALL ENTRIES IN i_bkpf_data
WHERE
bukrs EQ pa_bukrs AND
belnr EQ i_bkpf_data-belnr AND
gjahr EQ i_bkpf_data-gjahr AND
kostl IN so_kostl AND
lifnr IN so_lifnr AND
hkont IN so_hkont.
ENDIF.
I got performance issue on this Query..while accessing the data from BSEG table,its makes performance issue in my program so i want to improve performance of the program.i was analysed that BSEG table makes performance issue..
Hi..Anybody give the solution imporving this Query or give some function module for accessing BSEG table..
Note..I want to pass my selection inputs also into function module..i was seen some function module for BSEG,those are not satisfying the my inputs so those also making performance issue..
Regards
P.Senthil KumarHi Everybody,
About how to use this function Does anyone have an idea?
I've found it.
call function 'FI_DOCUMENT_READ'
exporting
i_awtyp = 'VBRK'
i_awref = vbfa_tab-vbeln
i_awsys = vbrk-logsys
i_bukrs = vbrk-bukrs
i_gjahr = vbrk-gjahr
tables
t_bkpf = xbkpf
t_bseg = xbseg
exceptions
wrong_input = 1
not_found = 2.
But this is not enough.
Best Regards Rasim. -
How to find the function module for standard tables.
Hi
Could any one please tell me how to find the standard function module to update the standard tables
Thanks & Regards
SowmyaHi sowmya,
To find the function modules for standard tables you go for a where used list of that particular table and check only function module interfaces checkbox...
and more over you can go for DB_UPDATE_TABLE will be the function module for updating database table..
Hope this information would help you
Regards
Narin Nandivada -
Problem using function module for infotype 21
hi
im uploading the infotype 21 (family details) through function module hr_infotype_operations. i found that infotype 0106 (family/related person)
is a secondary infotype and that a record is created for 0106 ,everytime you create a record in 21. so i upload the family data of an employee using the function module for infotype 21 initially. and then fetch the same record from the table pa0106 and modify the same record with other information.
for example : u have the address details of a dependent(father subtype 11) in infotype 21. this address data is stored in the table pa0106 . im not able to modify the record for infotype 0106 using the function module 0106.
i would like to know the reason for the same. Is it because that infotype 0106 is a secondary infotype and u cannot modify the record using the fn module..?/
thanks
sridharanHi Sir,
I am also facing the same issue...i need to update dependents Information Date Of Birth n Perid(Which is stored in IT0106)...in IT 0021..
Kindly correct my code....
I am using the following code for this...
data: w_return type bapireturn1.
data: p0021_struc TYPE p0021,
p0106_struc TYPE p0106,
p_pskey TYPE pskey.
start-of-selection.
get pernr.
p0021_struc = p0021.
p0021_struc-favor = 'Gaurav'.
p0021_struc-fgbdt = '05/10/1955'.
Move p0021_struc-favor to p0021-favor.
p0106_struc = p0106.
p0106_struc-stras = '2235 BOmbay Road'.
p0106_struc-perid = '123456789'.
MOVE p0106_struc-stras to p0106-stras.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_ENQUEUE'
exporting
number = pernr-pernr
importing
return = w_return.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = p_pskey-infty
number = p_pskey-pernr
subtype = p_pskey-subty
objectid = p_pskey-objps
lockindicator = p_pskey-sprps
validityend = p0021-endda " '99991231'
validitybegin = p0021-begda
record = p0021_struc
operation = 'mod'
tclas = 'A'
dialog_mode = '2'
nocommit = p_test
VIEW_IDENTIFIER = '07' "p0003-viekn
secondary_record = p0106_struc
IMPORTING
return = w_return
key = familykey
EXCEPTIONS
OTHERS = 0.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_DEQUEUE'
exporting
number = pernr-pernr
importing
return = w_return. -
Any BAPI/Function Module for adding new record with dates in PA0027
Hi all,
I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
thanks for ur time.
MuraliHi Raj/Suresh thanks for ur answers.
but i am having a problem,i gave this values.
INFTY -
0027
NUMBER -
00000010
SUBTYPE -
010
OBJECTID
LOCKINDICATOR
VALIDITYEND -
03/12/2006
VALIDITYBEGIN -
03/01/2006
RECORDNUMBER -
000
RECORD -
P0027
OPERATION -
CHK
TCLAS -
A
DIALOG_MODE -
0
NOCOMMIT -
Y
VIEW_IDENTIFIER
SECONDARY_RECORD
i am getting short dump saying that
The source field is too short.
The current program, "SAPLHRMM", tried to assign a field to a field symbo
However, the field is shorter than the type of the field symbol, which
is not allowed.
The statement in question is in the form ASSIGN f TO <fs> CASTING or
ASSIGN f TO <fs> with a field symbol that was created using the
STRUCTURE addition.
I tried operation - Chage,Create (same thing for all inputs)
is this correct funtion moduel for my requirment?
what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
Thanks for ur time.
Murali. -
Function module for detailes description of Order and long text in task
Hello gurus,
please help me with Function module for detaile description of Order and long text in task list(operation Tab)?
regards,
YKHi,
You should be able to read the Order short text directly from table AUFK. The Order long text or task list long text can be read by using FM "Read_text". Use Goto> Header on every long text screen to identify the parameters that need to be passed hen using this FM.
Regards
Narasimhan
Maybe you are looking for
-
Can I transfer photos on apple tv back to computer?
I had an external hard drive failure recently and lost iphoto library. All photos can still be viewed on my apple tv, however. Is there a way I can transfer the photos back into my photo library?
-
Storing integers in a compiled program
I would am wriitng a program and I would like to generate a unique number for each time a users uses the compiled program, is it possible to store previously incremented numbers i.e. the last person who used this program got a print out number of 5.
-
File attachment encoding problem
Guys, I spend to much time trying to get trough this. I use xsl mapping for preparing to send mail by mail adapter. File is encoded ANSI (not UTF-8) when i zip it to import it as archive for using this in maaping. It's realy simple XSL. It's adding I
-
Multiple row return in Procedure
I am trying to convert a SQL Server to Oracle 8i. They have a bunch of procedures that return multiple rows. How can this be handled in Oracle?
-
Well all of a sudden after using the file cleaning program BAM skype malfunctioned the view of the person i was talking to on video skype was narrow instead of wide. Tried everything deleted the plist file then erased the app and reinstalled it. Stil