Any function module to get all items in SAP INBOX
hi All
I am trying to get all the items in my SAP Inbox via rfc.
Can anyone help me with any function module to get all items in SAP INBOX.
Thanks
Hi Mukesh,
Step 1. Use FM SO_USER_READ_API1 to get the folder details of the user
Step 2. Use FM SO_FOLDER_READ_API1 of the respective folder. You can read the Inbox, Workflow Inbox depending on what folder you read. The function modules are documented well as well with examples.
Hope this will help u,
Thanks & Regards
Kiran
Similar Messages
-
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 -
Is there any function module for getting distribution list name
Hi all,
Is there any function module for getting distribution list name when there is same description for two distribution list name.
or
help me how to fetch the correct distribution name when there is same description.
In order to send mails.
Tell me ASAP.
thanks
sagar.http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
list of Fms -
Any functional module to get financial document based on billing document
hi all,
do we have any functional module to get accounting document (bseg-BELNR) based on billing document (bseg-VBELN)?
i have a requirement to retrieve the clearing document (bseg-augcp) & date(bseg-augdt) from BSEG with billing document.
billing document is not a key, so i would like to retrieve the accounting document from any function module and use that to get clearing document (bseg-augcp) & date(bseg-augdt).
thanks.hi all,
i got other option to get this....thanks.
select single * from bkpf
where bukrs = <data>-werks
and AWTYP = 'VBRK'
and AWKEY = billing doc.
if sy-subrc EQ 0.
select single * from bseg
where bukrs = bkpf-bukrs
and belnr = bkpf-belnr
and gjahr = bkpf-gjahr.
if sy-subrc EQ 0.
<data>-AUGDT = bseg-augdt.
<data>-AUGBL = bseg-augbl.
endif. -
Is there any function module to get the variables used in a query?
Hi experts
Please, do you know if is there any function module to get the variables used in a query?
Thanks and regards
LuisHi Srini
Yes, I have checked the tables but I need a function module
Thanks anyway!
Luis -
Any Function Module to get Service Conditions in Service Contracts???
Hi All,
I have created a function module inside which I have written BDC code for changing Service Contracts (ME32K).
I have used Item_condition and item_cond_validity structures in Table parameters.
For changing the conditions related to services, I need to know first which ones of those conditions were already there in the database for the contract and which ones are newly put in item_condition structure.
Similar reqmnt I had for Services also, for which I got the FM - MS_FETCH_SPEC_FOR_LIST, wherein I am giving Package number from Ekpo and getting the services related to item. I need something similar for Conditions also.
Is there any Function module wherein by giving the item and service info, I can get the conditions related to that particular Service? Or else any way using SAP std tables, I can get this info.
Please respond if anyone has this info.
Thanks a lot!
NavitaHi Mukesh,
Step 1. Use FM SO_USER_READ_API1 to get the folder details of the user
Step 2. Use FM SO_FOLDER_READ_API1 of the respective folder. You can read the Inbox, Workflow Inbox depending on what folder you read. The function modules are documented well as well with examples.
Hope this will help u,
Thanks & Regards
Kiran -
Any Function Module For getting Shipment Details
Hi All,
I want to get all details of shipment. i tired , but unable to get any function? I was able to find the creation or change shipment function modules, but not able to find the function module for getting the details for Shipment.
like BAPI_SHIPMENT_CHANGE Change Shipment
BAPI_SHIPMENT_CREATE Create Shipment
similary
Do you have any idea for getting (display)the details of Shipments?
Regards,
Rajuhi,
you can use
VTTP,VTTK
or
RV_SHIPMENT_READ -
Any function module for getting fiscal year week numbers
can any one provide me function module for getting fiscal year week numbers ? if no function module please let me know work around.
Thanks!
Lakshmikandhhi,
Use FM <b>'DATE_GET_WEEK'</b>...
parameter D1 LIKE SCAL-DATE.
Data w like scal-week.
CALL FUNCTION <b>'DATE_GET_WEEK'</b>
EXPORTING
date = D1
IMPORTING
WEEK = W
EXCEPTIONS
DATE_INVALID = 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.
write W+4(2).
Regards,
Santosh -
Any function module to get Stock and value of material on a given date?
Hi Friends
Is there any function module available to get Stock/and value of material on a given date?
Thanks
HarishSorry I didn't elaborate the requirement.
I am asked to develop a custom report for inventory management. For range of materials it is required to display stock and value on particular date and GRs GIs for the range.
I need function module to use in Zreport.
Thanks
Harish -
Any Function Module to get date by passing week and year
Hi,
Is there any Function Module available to get date by passing week and year. For example, Week 24, Year 2005 and you get the date.
Regards,
MiraWEEK_GET_FIRST_DAY
pass 'YYYYWW' (200524) to WEEK parameter it will give you the week start date
Raja -
Is there any function module to get the purchase order conditions from EONP
Hi,
I want to get the EONP and EONH table details for the purchase orders with the help of function module. Can anyone tell me any function module name which would give me those details.
Thanks,
AtanuHi
Check with BAPI function module BAPI_PO_GETDETAIL and BAPI_PO_GETDETAIL1.
Regards
Srilaxmi -
Function Module to get all feild names in a structure
Hello Friends,
Is there a function module,where i give the structure name and get all the feild names within that structure.
regards
kaushikHi,
You can use the for run time type descriptor classes to do this :
Here is a simple example :
REPORT z_assign_comp.
TYPE-POOLS : slis.
include <icon>.
"& Dynamic Programming ! Using Structure Descriptior Class. *
DATA: BEGIN OF line OCCURS 0,
col1 TYPE i,
col2(10) TYPE c,
col3 TYPE i,
END OF line.
FIELD-SYMBOLS : <fs> TYPE ANY.
FIELD-SYMBOLS : <itab_line> TYPE ANY.
DATA : BEGIN OF t_comp OCCURS 0,
comp(5) TYPE c,
END OF t_comp.
DATA : l_struc TYPE REF TO cl_abap_structdescr.
DATA : l_typedesc TYPE REF TO cl_abap_typedescr.
DATA : lt_comp TYPE abap_compdescr_tab,
w_comp LIKE LINE OF lt_comp.
line-col1 = 11.line-col2 = 'SAP'.line-col3 = 33.
APPEND line.
line-col1 = 44.line-col2 = 'P.I.'.line-col3 = 66.
APPEND line.
ASSIGN line TO <itab_line>.
"Call the static method of the structure descriptor describe_by_data
CALL METHOD cl_abap_structdescr=>describe_by_data
EXPORTING
p_data = <itab_line>
RECEIVING
p_descr_ref = l_typedesc.
"The method returns a reference of a type descriptor class therefore we
"need to Cast the type descriptor to a more specific class i.e
"Structure Descriptor.
l_struc ?= l_typedesc.
"Use the Attribute COMPONENTS of the structure Descriptor class to get
"the field names of the structure
lt_comp = l_struc->components.
LOOP AT line.
WRITE :/ 'Row : ', sy-tabix.
LOOP AT lt_comp INTO w_comp.
" Using the ASSIGN component ,assigns a data object to a field symbol.
ASSIGN COMPONENT w_comp-name OF STRUCTURE line TO <fs>.
WRITE :/ w_comp-name, ' ', <fs>.
ENDLOOP.
ENDLOOP.
Hope this helps.
regards,
Advait -
Bapi or Function module for getting Bom Item Details (Urgent)
Hi All,
I Want to get the Bom Item Details Corresponding to Production Order Number.
So Please Provide me Some Function Module or Bapi So that by giving the
Production Order number I will get all material related to that PO.
Thanks In Advance.Hi,
use the function module.
call function 'CS_BOM_EXPL_MAT_V2'
exporting
capid = 'STD1'
datuv = sy-datum
mktls = 'X'
mehrs = 'X'
mmory = '1'
mtnrv = matnr
werks = werks
tables
stb = it_stb2
matcat = it_matcat
exceptions
alt_not_found = 1
call_invalid = 2
material_not_found = 3
missing_authorization = 4
no_bom_found = 5
no_plant_data = 6
no_suitable_bom_found = 7
others = 8.
Regards,
Sankar. -
Any function module to retrieve all Payment Run Data
I am looking for a RFC enabled function module which would retrieve all the data related to Payment Run.( Tables REGUH REGUP, PAYR, BKPF, BSEG)
Any idea or pointers ?Hi
U can use FM RH_STRUC_GET to get the pernr in the evaluation path
data : IT_RESULT_TAB TYPE STANDARD TABLE OF SWHACTOR .
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = C_OTYPE
ACT_OBJID = W_POSIT
ACT_WEGID = C_WEGID (relation B002 like )
ACT_BEGDA = W_BEGDA
ACT_ENDDA = W_BEGDA
ACT_TDEPTH = 1 ( depath 1, 2, etc )
TABLES
RESULT_TAB = IT_RESULT_TAB .
Nb : Give points if it worths -
Is there any function module to get the no. of days in a month?
hi all,
if i have the month and year then is there any FM by which i can get the no. of dayz in that month?
regards,
shweta upadhyay.Hi swetha,
i have written my own function module,may be it helps u.
""Local interface:
*" IMPORTING
*" VALUE(DAY_IN) LIKE SY-DATUM
*" EXPORTING
*" VALUE(FIRST_DAY_OF_MONTH) LIKE SY-DATUM
*" VALUE(LAST_DAY_OF_MONTH) LIKE SY-DATUM
*" VALUE(NUMBER_OF_DAYS) TYPE I
*" EXCEPTIONS
*" DAY_IN_NO_DATE
DATA: BEGIN OF DATE,
J(4),
M(2),
T(2),
END OF DATE.
DATA: ZAHL TYPE I.
DATA: DAYS_SUBTRACT TYPE I.
DATA: XDATUM TYPE D.
XDATUM = DAY_IN.
XDATUM+6(2) = '01'.
XDATUM = XDATUM + 35.
XDATUM+6(2) = '01'. XDATUM = XDATUM - 1.
NUMBER_OF_DAYS = XDATUM+6(2).
DATE = DAY_IN.
IF DATE-M LT JANUARY OR DATE-M GT DECEMBER.
raise DAY_IN_NO_DATE.
ENDIF.
IF DATE-J LT LOWDATE.
raise DAY_IN_NO_DATE.
ENDIF.
IF DATE-J EQ HIGHDATE-J AND
DATE-M EQ HIGHDATE-M.
LAST_DAY_OF_MONTH = HIGHDATE.
ELSE.
IF DATE-M EQ DECEMBER.
ZAHL = DATE-J + 1.
UNPACK ZAHL TO DATE-J.
DATE-M = FRIST.
DAYS_SUBTRACT = NUMBER_OF_DAYS - 1.
ELSE.
ZAHL = DATE-M + 1.
UNPACK ZAHL TO DATE-M.
DAYS_SUBTRACT = NUMBER_OF_DAYS - 0.
ENDIF.
First of the subsequent month
DATE-T = FRIST.
LAST_DAY_OF_MONTH = DATE.
FIRST_DAY_OF_MONTH = DATE.
SUBTRACT 1 FROM LAST_DAY_OF_MONTH.
SUBTRACT DAYS_SUBTRACT FROM FIRST_DAY_OF_MONTH.
ENDIF.
ENDFUNCTION.
regards,
nagaraj
Maybe you are looking for
-
How do I connect my macbook pro to apple tv?
I have a Macbook Pro 2.7 GHz i7 that I purchased last Summer and I want to wirelessly connect it to my TV via Apple TV. I'm running the lastest OS X 10.7.3 I watched a couple youtube videos and those people had an icon next to the wifi signal that a
-
Running Tomcat from a java program
I'm writing a program that shall run Tomcat from the program itself. The eacy way would be to just call org.apache.catalina.startup.Bootstrap.main(String[]) in a new thread, but that gives only a little information to the program about the state of t
-
for the last several days I have experienced the dreaded wite screen of death upon power up of my 2008 Mac Pro 2.8, Screen will hang white - no apple logo - when I hit the power button resart - the mac power light does not go out, but "clicks" and t
-
i have three email msgs that i attempted to forward however they cannot be sent and are just "cycling overr and over, any ideas why?
-
Help ! lost FCP app support folder ?
Hi there, I might be lookin in the wrong place.... but if I look into home/users/myname/library/application support/final Cut Studio I don't find any folder other than" DVD Studio Pro"," Motion", "Patches", "Shapes" Is that right ? ??? Shouldn't have