Function module for access OM Data from infotype 1001
We had a function module for accessing OM data viz. Infotype 1001. Could you let me know.
Advanced thanks,
Dasaradh kosana
Hi Dasaradh,
Do you want the fm which fetches the data from HRP1001 , if this is the case you can use this FM RH_READ_INFTY_1001.
Reward Points if it is helpful
Regards,
Kiran I
Similar Messages
-
ABAP Function Module Example to move data from one Cube into Another
Hi experts,
Can any please help out in this ..?
A Simple ABAP Function Module Example to move data from one Cube into Another Cube
(How do i send the data from one client to another client using Function moduel).
Thanks
-Upen.
Moderator message: too vague, help not possible, please describe problems in all technical detail when posting again, BI related? ("cube"), also search for information before asking.
Edited by: Thomas Zloch on Oct 29, 2010 1:19 PMThis is the start routine to duplicate records in two currencies.
DATA: datew TYPE /bi0/oidateto,
datew2 TYPE rsgeneral-chavl,
fweek TYPE rsgeneral-chavl,
prodhier TYPE /bi0/oiprod_hier,
market TYPE /bic/oima_seg,
segment TYPE /bic/oizsegment.
DATA: BEGIN OF S_DATA_PACK OCCURS 0.
INCLUDE STRUCTURE /BIC/CS8ZSDREV.
DATA: END OF S_DATA_PACK.
S_DATA_PACK[] = DATA_PACKAGE[].
REFRESH DATA_PACKAGE.
LOOP AT S_DATA_PACK.
move-corresponding s_data_pack to DATA_PACKAGE.
if DATA_PACKAGE-loc_currcy = 'EUR'.
DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalgrc.
DATA_PACKAGE-CURRENCY = 'USD'.
APPEND DATA_PACKAGE.
DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalloc.
DATA_PACKAGE-CURRENCY = 'EUR'.
APPEND DATA_PACKAGE.
else.
DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalgrc.
DATA_PACKAGE-CURRENCY = 'USD'.
APPEND DATA_PACKAGE.
endif.
ENDLOOP.
This is to load Quantity field
RESULT = COMM_STRUCTURE-BILL_QTY.
This is to load Value field
RESULT = COMM_STRUCTURE-NETVAL_INV.
UNIT = COMM_STRUCTURE-currency. -
Function module to get the dates from the year and the period
Is there a function Module to get the dates from the year and the period
Check with :
To get last day of period use .
LAST_DAY_IN_PERIOD_GET.
To get last of month Use :
RE_LAST_DAY_OF_MONTH
HRVE_LAST_DAY_OF_MONTH
LAST_DAY_OF_MONTHS
ISB_PREVIOUS_PERIOD_DATE_GET
Thanks
Seshu -
Function Module for Translation of text from Lower to Upper Case
Hi All,
Can any one give me function module for translation of text from lower to upper case.
If we use Translate statement for the program in the Extended Syntax check it is giving error.
Thanks in advance.
Regards,
srinivasHi Srinivas,
You can use any of the Function Modules below.
AIPC_CONVERT_TO_UPPERCASE
2054_TRANSLATE_2_UPPERCASE
HR_99S_CONV_UPPER_CASE
Please reward if useful.
regards,
Raj -
Error in function module for inbound processingwhile testing from we19
hi,
I have developed a custom function module for processing inbound idoc for creating material using bdc...the problem is that when i am trying to test my idoc using we19 and calling my function module in debug mode an error is displayed showing 'interface for function module is incorrect' and also i am unable to see my function module in debugging mode.It is only displaying the error message...
I have given all the parameters necessary (import,export or tables) and found no error in the interface...I think the problem is appearing before my function module is being called....Also on seeing the short dump analysis I have seen that the error is in the form 'Idocs passed to application' which is not a part of the function module developed by me...
I am unable to understand why this error message is being displayed...
Please help me out of this..ya i know that ..But I wanted to create a simple one..moreover the problem is not with bdc....It is with the function module interface..
Also I want to ask a question that I had to define all the parameters (in the function module ) by data declaration statements in the function group top include..
If i dont do that say the first error is when i write loop at idoc_contrl ..idoc_contrl is not declared by a data statement..So IO had to write a data statement:
Idoc_contrl type table of edidc..I have seen that in other function modules (idoc inbound processing) no such data declaration is done.. -
Function module to get order data from delivery
hi ,
is there any function module to which i can pass the delivery number and get the order number (s) and other data .
basically i want the order currency.
pls help.
<removed by moderator>
Edited by: Mike Pokraka on Aug 21, 2008 9:44 AMHi Surendra,
If your requirement is just to retreive the Order number for a given delivery then you can go with following:
Just go to LIPS table, there you can get the Order Number and ITEM from VGBEL and VGPOS fields for given Delivery Number VBELN.
You can also do the same by using VBFA table.
Also have a look to the following thread:
Re: Getting sales order number against Delivery Number
Hope this will help.
Regards,
Nitin. -
Function Module for Changing delivery date
Hi Friends ,
I am held up with a scenario of changing the delivery date while creating purchase order. Could you please suggest any function module to change the delivery date in purchase order if it is less than 5 days.
With Regards ,
Sudhir S
Moderator message: please do some own research before asking.
Edited by: Thomas Zloch on Feb 21, 2011 11:45 AMHi praveen for u r requirement there is no need of any FM
Try this code
parameters:
p_date like sy-datum,
p_no type i.
data:
w_date like sy-datum.
w_date = p_date - p_no.
write: / w_date .
it is enogh for u r requirement
plzz reward if it is usefull...
for any further quiries my mail id is [email protected]
plzz dont forget to reward -
Function Module to Calculate Due Date from Payment Terms?
I'm writing an aged debtor report as the SAP standard one isn't quite right for our requirements. Is there a function module that will calculate the payment due date if I give it the payment terms and the base line date?
I did a search in SE37 but couldn't see one which fitted my requirements (I was searching on CALCDUEDATE and variantions of).
Any suggestions welcome, thanks.
GillHi,
Use the FM FI_TERMS_OF_PAYMENT_PROPOSE for calculating the Payment due date
call function 'FI_TERMS_OF_PAYMENT_PROPOSE'
exporting
i_bldat = gv_bldat
i_budat = gv_budat
i_cpudt = sy-datum
i_zfbdt = gv_zfbdt
i_zterm = gv_terms_paym
i_bukrs = gv_comp_code
importing
e_zbd1t = gv_zbd1t
e_zbd1p = gv_zbd1p
e_zbd2t = gv_zbd2t
e_zbd3t = gv_zbd3t.
Regards,
Dwaraka.S -
Is there any function module to get the data from st06?
Hi,
I'm new to this forum.
I would like to know if there is a way (maybe some function modules) to collect information like system architecture, and databases as displayed in transaction st06?
I would like to call it from external program in order to view part of the data available in st06.
Thanks,
Erez Gordon.have a look at function group SMON.
Not sure if these are remote enabled, otherwise create a wrapper function module (RFC).
Edited by: Micky Oestreich on Dec 11, 2008 9:37 AM -
Function module for converting German Data/Time to Indian Date/Time
Dear All,
My requirement is to convert German date and time to Indian date and time. Is there any function module available or any way we can get it?
Thanks and regards,
Atanuhi,
first get the timezone of that country
CALL FUNCTION 'TZON_LOCATION_TIMEZONE'
EXPORTING
if_country = p_it_userid-zcountry
IMPORTING
ef_timezone = l_tzone
EXCEPTIONS
no_timezone_found = 1
OTHERS = 2.
then use the below statements
-- Convert from server time to GMT
CLEAR l_tstmp.
CONVERT DATE l_datum
TIME l_ctime
INTO TIME STAMP l_tstmp TIME ZONE sy-zonlo.
*-- Convert from GMT to user backup time
CONVERT TIME STAMP l_tstmp TIME ZONE it_usr_timezone-ztzone
INTO DATE it_usr_timezone-zdate
TIME it_usr_timezone-ztime. -
Function Module for separating a date range into days
Hi all,
Does anyone know if there is a function module which gives back the list of days when we give a date range as input parameter to the function module. For example, we enter the range 10.07.2006 - 13.07.2006 and the function module gives back a table in form 10.07.2006, 11.07.2006, 12.07.2006, 13.07.2006.
Thanks,
SükrüHi suekrue,
1. Exactly for this purpose,
i have written an
INDEPENDENT FORM (subroutine)
wherein we pass
a) fromdate
b) todate
c) ITAB
2. and it gives all the dates in the internal table.
3. just copy paste
4.
data : itab type table of sy-datum with header line.
parameters : fromdate type sy-datum default '20060701'.
parameters : todate type sy-datum default sy-datum.
perform getdays tables itab using fromdate todate.
break-point.
FORM
form getdays
tables itab
using fromdate todate.
data : curdate type sy-datum.
curdate = fromdate.
do.
if curdate > todate.
exit.
endif.
itab = curdate.
append itab.
curdate = curdate + 1.
enddo.
endform. "getdays
regards,
amit m. -
Function Module for UNPACKING Handling Unit from Inbound Delivery
Hello Experts,
I am working on a RFID program to Receive goods from vendor...
One of the steps of the program should CHANGE the quantity inside a received batch.
To do so, I need to UNPACK the Handling Unit first... then change the quantity.
I am using the following Function Modules to do so:
- 'HU_GET_HUS'
- 'V51P_FILL_GT'
- 'HU_PACKING_AND_UNPACKING'
- 'HU_POST'
First 2 FM works fine...
But when I get to the 3rd one, I keep getting "NOT_POSSIBLE" error...
Have anyone done this before??
Here's the code I've done to do some testing before putting it into my code...
PLEEEEEEEEEEEASE HELP.
TYPE-POOLS: vsep. PARAMETERS: p_venum LIKE vekp-venum.
DATA: wa_object LIKE hum_object,
it_object TYPE TABLE OF hum_object.
DATA: wa_v51vp LIKE v51vp,
it_v51vp TYPE TABLE OF v51vp.
DATA: flag LIKE v51p_select_flags.
DATA: it_venum TYPE STANDARD TABLE OF hum_venum,
ef_rcode LIKE sy-subrc,
et_vekp TYPE STANDARD TABLE OF vsep_s_vekp,
et_vepo TYPE STANDARD TABLE OF vsep_s_vepo,
et_vevw TYPE vsep_t_vevw,
et_highest_level TYPE vsep_t_venum,
et_messages TYPE huitem_messages_t,
is_packing_request TYPE vsep_s_pithu,
es_p_request TYPE vsep_s_pithu,
es_item LIKE vepovb,
cs_header LIKE vekpvb,
ef_number TYPE vpobjkey,
et_header TYPE STANDARD TABLE OF vekpvb,
et_items TYPE STANDARD TABLE OF vepovb,
et_item_serialno TYPE vsep_t_rserob,
et_history TYPE hum_history_t,
et_highest_levels TYPE hum_venum_t.
DATA: wa_venum LIKE hum_venum,
wa_vepo TYPE vsep_s_vepo,
wa_vekp TYPE vsep_s_vekp,
wa_items TYPE vepovb,
wa_header TYPE vekpvb.
START-OF-SELECTION.
wa_venum-venum = p_venum.
APPEND wa_venum TO it_venum.
CALL FUNCTION 'HU_GET_HUS'
EXPORTING
it_venum = it_venum
IMPORTING
et_header = et_header
et_items = et_items
et_item_serialno = et_item_serialno
et_history = et_history
et_highest_levels = et_highest_levels
et_messages = et_messages
EXCEPTIONS
hus_locked = 1
no_hu_found = 2
fatal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE et_header INDEX 1 INTO wa_header.
CALL FUNCTION 'V51P_FILL_GT'
EXPORTING
it_venum = it_venum
IMPORTING
ef_rcode = ef_rcode
et_vekp = et_vekp
et_vepo = et_vepo
et_vevw = et_vevw
et_highest_level = et_highest_level
et_messages = et_messages
EXCEPTIONS
hu_locked = 1
no_hu_found = 2
fatal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE et_vepo INDEX 1 INTO wa_vepo.
READ TABLE et_vekp INDEX 1 INTO wa_vekp.
MOVE-CORRESPONDING wa_vepo TO is_packing_request.
is_packing_request-belnr = wa_vepo-vbeln.
is_packing_request-quantity = wa_vepo-vemng.
is_packing_request-veanz = '-1'.
is_packing_request-meins = wa_vepo-vemeh.
is_packing_request-exidv = wa_vekp-exidv.
CALL FUNCTION 'HU_PACKING_AND_UNPACKING'
EXPORTING
is_packing_request = is_packing_request
IMPORTING
ef_rcode = ef_rcode
es_p_request = es_p_request
es_item = es_item
CHANGING
cs_header = cs_header
EXCEPTIONS
missing_data = 1
hu_not_changeable = 2
not_possible = 3
customizing = 4
weight = 5
volume = 6
serial_nr = 7
fatal_error = 8
OTHERS = 9.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'HU_POST'
EXPORTING
if_synchron = 'X'
if_commit = 'X'
IMPORTING
ef_number = ef_number.
break nunfx004.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks in advance,
FernandaHi ,
Check this code.
Pack componet HU to Overpack HU. *
l_packing_req-venum = g_ovrp_venum. "Overpack Internal HU
l_packing_req-exidv = g_ovrp_exidv. "Overpack External HU
l_packing_req-veanz = '1'. "PACK Constant
l_packing_req-sub_hu_venum = l_int_venum.
l_packing_req-sub_hu_exidv = l_int_exidv. "Componet External HU
l_packing_req-velin = '3'. "HU Type Constant
l_packing_req-quantity = '1.000'.
call function 'HU_PACKING_AND_UNPACKING'
exporting
is_packing_request = l_packing_req
exceptions
missing_data = 1
hu_not_changeable = 2
not_possible = 3
customizing = 4
weight = 5
volume = 6
serial_nr = 7
fatal_error = 8
others = 9.
if sy-subrc <> 0.
error
clear: v_msgv1, v_msgv2, v_msgv3.
v_msgv1 = text-031.
PERFORM display_message USING v_msgv1 v_msgv2 v_msgv3.
leave to screen sy-dynnr.
endif.
No Errors --> POST HU
call function 'HU_POST'
exporting
if_synchron = 'X'
if_commit = 'X'.
plz write what you are passing to 'HU_PACKING_AND_UNPACKING' and hu_post fm.
Regards
Mohinder Singh Chauhan -
Tables, function modules for variant config data
Hi all,
I need to extract characteristics and values for variant material from sales order and production orders. Could you please tell me the relevant tables and function modules?
Regards,
Sachin MHi
Try the following;
Function module to find values of characteristics - CLAF_CLASSIFICATION_OF_OBJECTS .
Table # AUSP also holds values of characteristics, you can link to it via table INOB,which should also linked to table KONDH if you are using the same.
Transaction code for Variant Config - CC04 (Product Structure browser)
Cheers
Chandra -
Function Module for getting J1IEX Data
Dear All,
Is there any F.M available for getting details whatever is posted in J1IEX, like ED, Ecess, HEcess etc.
regards,
paras
Point Assured.Hi,
I'm not sure what you mean with 'textmodule' but try with function module READ_TEXT.
Regards,
Eduardo -
Urgent: Function module for getting the input from user using a pop up
Hi all,
My requirement at user commmand a pop up should appear asking the user to enter the session name for the bdc session to be created.
My report allows the user to enter the session name of his choice.
I need the name of the function module which can do this.
Thanks
Pritishbetter to create one FM to pop-up.
check this :
function y_pop_up_get_distributor_time.
*"*"Local interface:
*" IMPORTING
*" REFERENCE(W_ROUTE) LIKE VBAP-ROUTE
*" REFERENCE(W_VBELN) LIKE VBAK-VBELN
*" REFERENCE(W_VGBEL) LIKE VBAK-VGBEL
*" REFERENCE(W_VSTEL) LIKE VBRP-VSTEL
*" REFERENCE(W_AUART) LIKE VBAK-AUART
*" EXPORTING
*" REFERENCE(W_FROM_DATE) TYPE SY-DATUM
*" REFERENCE(W_FROM_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TO_DATE) TYPE SY-DATUM
*" REFERENCE(W_TO_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TKNUM) TYPE VTTK-TKNUM
*" REFERENCE(W_RC) TYPE SY-SUBRC
*" REFERENCE(W_DEPT_DATE) TYPE SY-DATUM
*" REFERENCE(W_DEPT_TIME) TYPE SY-UZEIT
*" REFERENCE(W_REPO_DATE) TYPE SY-DATUM
*" REFERENCE(W_REPO_TIME) TYPE SY-UZEIT
*" REFERENCE(W_PLNT_DATE) TYPE SY-DATUM
*" REFERENCE(W_PLNT_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TRUCK_NO) TYPE YW2_TIMEENTRY-TRUCKNO
*" REFERENCE(W_LIFNRN) TYPE YW2_TIMEENTRY-LIFNR
* SET PF-STATUS 'STATUS_100' OF PROGRAM SAPLZ2SLS.
*CLEAR:W_DATE_FROM, W_DS_TIME_1, W_ADATE,
* W_ATIME,W_BDATE,W_BTIME, W_CDATE, W_CTIME.
clear : w_route1, w_vbeln1,w_vgbel1,
w_vstel1,w_auart1.
w_route1 = w_route.
w_vbeln1 = w_vbeln.
w_vgbel1 = w_vgbel.
w_vstel1 = w_vstel.
w_auart1 = w_auart.
clear: w_date_to, w_date_from, w_adate,w_atime,
w_ds_time_1, w_ds_time_2,
w_bdate, w_btime, w_cdate, w_ctime.
call screen 100 starting at 10 2 ending at 115 13.
if w_ok_code = 'SAVE'.
w_rc = 0.
w_from_date = w_date_from.
w_from_time = w_ds_time_1.
w_to_date = w_date_to.
w_to_time = w_ds_time_2.
w_tknum = w_tknum.
w_dept_date = w_adate.
w_dept_time = w_atime.
w_repo_date = w_bdate.
w_repo_time = w_btime.
w_plnt_date = w_cdate.
w_plnt_time = w_ctime.
w_truck_no = sg_truckno.
w_lifnrn = w_lifnr.
else.
w_rc = 1.
endif.
* IF w_ok_code = 'CANC'.
* W_rc = 1.
* ELSE.
* W_rc = 0.
* W_FROM_DATE = w_date_from.
* W_FROM_TIME = w_ds_time_1.
* W_TO_DATE = w_date_to.
* W_TO_TIME = w_ds_time_2.
* W_TKNUM = W_TKNUM.
* W_DEPT_DATE = W_ADATE.
* W_DEPT_TIME = W_ATIME.
* W_REPO_DATE = W_BDATE.
* W_REPO_TIME = W_BTIME.
* W_PLNT_DATE = W_CDATE.
* W_PLNT_TIME = W_CTIME.
* ENDIF.
clear w_ok_code.
endfunction.
Regards
Prabhu
Maybe you are looking for
-
Photos will not Sync to iPad, iPhone or Apple TV.
I am not able to Sync photos, on my iPhone or iPad, when cabled to my iMac. I have checked "Sync Photos from iPhoto" and the photo albums (within iTunes) show zero photos. Also, not able to view photos on Apple TV. I have gone to iTunes File>Home S
-
Latest IPad 2 iOS 5.0 ICloud freeze and play by itself
Hi, I have 2 iPads. One is just ipad 1 wifi and it works perfect! and another one iPad 2 3G. I had ipad 2 3G (bought directly from apple website) may 2011 till sep 2011 -did work absolutely fine. Then I gave it away and recently bought the latest ver
-
Content Server Configuration to use FileSystem as Reposiroty
Hi, We want to enable Content Server on our system. But instead of using the underlying database as the storage / repository we would like to use and external filesystem as a storage / repository. Also accessing the data thus stored would be using th
-
My contacts have been split into individual entries for each part of the contact. There is now an entry for the phone number, each email address, and address of each contact that I have. I have never seen this before and would like to know if there i
-
G/L account 890000 cannot be used (please correct)
Dear ALL I have been trying to create an account assigned PO and am getting the follwoing error. I have tried to see many of the notes but none are helping me fix this. The details of the error as given below please advise Message no. ME045 Diagnosi