Function Module/Table to Retrieve subobjects for a main object.
Hi experts,
Is there any FM or table to find subobjects for a main object for example, in SE80 when you give an object say MP000100, it gives the list of subobjects associated with it like screens, inlcudes fields...etc, or is there any other way?
Thanks in Advance.
Hi Mahesh,
Thanks for your reply. The Table which you have given me is helpful, but I need to find the subobjects of any given object. For example, for module pool mpXXXX00, i need to know all the subobjects, related to this module pool. The main object can be anything. If it is a (report, WDA program etc) I need to get the list of sub objects tied to the main object.
Hope you can understand my requirement.
Thanks and regards.
Similar Messages
-
Function Module/Table to retrieve check table for standard fields
Hi,
Is there any function module or database table that holds the check table for standard field? Ex. BUKRS = T001.Hi MArc,
Goto DD03L table
Enter fieldname and tablename, you will get check table in CHECKTABLE field.
e.g. fname - MATNR, tbname MARD then CHECKTABLE - MARA
Reg,
Sachin -
Function module table returning empty rows but export data is getting
Hi,
I am executing function module through JCO after setting importing parameter and when i retrieve the table i get table with empty data 0 rows but i am able get export parameter data . when execute the same function module in abap through sap gui i get table containing 5 rows. what may be the problem. please find below code
function = getDefaultJCoConnection().getJCoFunction("ZCRM_ICSS_PROJ_CUST_USR");
function.getImportParameterList().getField("USER_ID").setValue("MLDL010");
getDefaultJCoConnection().execute(function);
exportTable = function.getTableParameterList().getTable("PROJCUSTLIST");
int rowsNumber = exportTable.getNumRows(); // companies table number of rows
log.error("rowsNumber----"+String.valueOf(rowsNumber));
try
if (rowsNumber > 0)
int i = 0;
do
tempString="table valuesZCOMP_ID"(String)exportTable.getValue("ZCOMP_ID")"ZCOMP_SPC-"+(String)exportTable.getValue("ZCOMP_SPC")
+ "table valuesZCOMP_DESC"(String)exportTable.getValue("ZCOMP_DESC")"ZPRICE-"(String)exportTable.getValue("ZPRICE")"---" ;
log.error(tempString);
while (exportTable.nextRow());
catch (Exception th)
log.error("The following error occured: while retrieving table values ", th);
Do you have any idea where may be the problem
Regards,
Pavan
Edited by: Pavan Reddy on Apr 10, 2010 4:46 PMHi Pavan,
This could be the case. The function module might be expecting a value converted into its format.
By this, I mean that the function module might be expecting 0012345678 for 12345678 (Where data element of the ID is of type CHAR 10 ).
Please check if it is so.
Best Regards,
Kris. -
Functionality / modules currently available in MySAP for asset tracking.
Hi All,
We have a new requirement in the asset accounting. If any one have come accross can you let me know the feasibility and the process.
1.Functionality / modules currently available in MySAP for asset tracking.
2.Could MySAP support data input from other external devices e.g. scanner.
3.What kind of asset level info is stored in MySAP and how they are modified along the asset life cycle
Thanks nd Regards
Srihari BollaYes this is possible.
In the asset itself you have the fields Last inventory on and Include asset in inventory list
From SAP you can print barcodes (asset and asset sub number) that you can put on your assets TC S_ALR_87010137 - Bar Codes . There is a standard SAP script for this, but you can create your own one.
The date you want to use for your tracking you can get ot ouf the table ANLA
For all the barcode's reader there is software that can create a file. This file you upload with an LSMW in SAP that updates the field Last inventory on. -
Function module like ENQUEUE and DEQUEUE for function location.
Hi All,
I should be highly appreciate if any one help me for locking function module like ENQUEUE and DEQUEUE
for function location.
Thanks
ShawHi,
You can either use the standard way of locking by using :
data:lv_varkey TYPE rstable-varkey.
concatenate functional_location sy-mandt into lv_varkey .
* Lock table
CALL FUNCTION 'ENQUEUE_E_TABLEE'
EXPORTING
mode_rstable = 'E'
tabname = 'IFLOS'
varkey = lv_varkey
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
* Unlock table
CALL FUNCTION 'DEQUEUE_E_TABLEE'
EXPORTING
mode_rstable = 'E'
tabname = 'IFLOS'
varkey = lv_varkey.
Or,
As mentioned above create a lock object via transaction SE11.
Go to transaction se11:
--> Enter lock object name e.g EZ_IFLOS
--> Click on create
--> Enter description
--> Click on tables tab
--> Enter 'IFLOS' as table name
--> select lock mode
--. click on save and activate.
2 function modules will be created as DEQUEUE_EZ_IFLOS and ENQUEUE_EZ_IFLOS .
Regards. -
Function Module TABLES parameters
Hi All,
I want to pass my internal table to a function module but when I try to access the componenbts of the table it is giving me syntax error. Is it required that I should create DDIC structure for this? Is there any other option?
I have declared the internal table using types. And in function module tables parameters just declared internal table.
Regards,
DilipHi
In the function
Say import parameter is TAB ( with no type definition )
From program you pass an internal table ITAB .
You don't need to define TAB in your function.
In the code you can diretcly use
LOOP AT TAB.
ENDLOOP.
( At runtime TAB will take the structure of ITAB from program )
Cheers -
Function module to choose the file for download and upload
what is the function module to choose the file for download and upload for presentation server.
give me with examplePlease search in SCN.
This has been discussed so many times. -
Function module to determine the date for the nth weekday of the mth month
Hey folks,
Is there a function module which determines the date for the mth weekday of the nth month in the pth year.
For instance, if I input 2nd thursday of the 4th month in 2008, it should return me, 04/10/2008 (MM/DD/YYYY).
Thanks and Best Regards,
Puja.Hi Ravi,
Hadn't been able to work on this lately...You solution was quite close, but did not work for a few scenarios....I tweaked the logic a bit to take care of them as well...
So here goes the code:
================================================
DATA first_day_of_month TYPE datum.
DATA day TYPE p.
CONCATENATE year month '01' INTO first_day_of_month.
CALL FUNCTION 'DAY_IN_WEEK'
EXPORTING
datum = first_day_of_month
IMPORTING
wotnr = day.
DATA day_number TYPE numc2.
IF day = weekday.
IF recur = 1.
DATA ls_date(10) TYPE c.
CONCATENATE month '/01/' year INTO ls_date.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = ls_date
IMPORTING
date_internal = date.
ELSE.
day_number = ( ( recur - 1 ) * 7 ) + 1.
ENDIF.
ELSEIF day < weekday.
day_number = ( ( recur - 1 ) * 7 ) + ( weekday - day ) + 1.
ELSE.
day_number = ( ( recur - 1 ) * 7 ) + ( 7 - day ) + weekday + 1.
ENDIF.
IF date IS INITIAL.
CONCATENATE year month day_number INTO date.
ENDIF.
====================================
There still could be some loopholes in this....am not sure....but it sure did seem to work for a couple of random checks that I performed.
Brownie points to you for giving me a direction.
Thanks,
Puja. -
Function module WWW_ALV_CALL is not released for the Internet
Hi
I am facing this error Function module WWW_ALV_CALL is not released for the Internet and Only user SAP can release the function module.
Best Regards
GAGANhi,
This Web based calls are not available anymore in Netweaver 2004s/7.0.
More information in SAP-Note: 910202
Hope this helps
regards
Tobias -
Function Module that will retrieve the parameters for a given function Modu
Hi
We have a requirement where we will be calling Function Module that will be maintained in a table entry. How we will determine what is the parameters that is required by this function module. Is there a FM that will suffice the requirement.
Thanks in advance
arghadipHi,
You have to write a custom code for that. Use the table FUPARAREF to retrieve the parameters for a function module. Give function module name as input.
Pls reward points if solved your issue.
Regards,
Renjith Michael. -
IBASE Status update Function Module/ Table Field for status
Dear Experts
We need function module to change status of IBase. Please tell me standard function module if any. Or if no standard fuction moudle exists, please tell me tables which contains user and system status.
Thanks and regardsHi,
Try using FM CRM_IBASE_CHANGE and please remember to call FM CRM_IBASE_SAVE to save the changes made. Thanks.
Regards, AC -
Functional module table parameters values not getting displayed in Java sys
Hi,
We are calling the Table parameter through Java code from functional
module ZCRM_ICSS_PROJ_CUST_USR is not giving any rows value .If I execute
the same functional module with passing the import parameter value User
id: MLDL010 its giving value in CRM.
I am checking Function module( Remote enabled ) in Debugging mode,
before displaying values it is raising message like
SY-MSGNR - 005
SY-MSGTY - CRM_LINK
in T100 Table
SPRSL : EN
ARBGB : CRM_LINK
MSGNR : 005
TEXT :'No Links corresponding to the specified data could be determined'
Is that related to any communication problem CRM & JAVA ICSS System ?
Regards,
Pavan.The message in simple English just means that "You are doing something really bad" !!! It is absolutely not the communication problem, but understanding problem.
Though you may be executing the same function using SE37 or in the webshop application through JCo, the runtime context is different and without knowing what exactly your Z rfc is doing, it is very difficult to help. To start with, the userid - that is who is running the RFC is different in both situations. In SE37, it is the logon user and in the web, depending upon whether the connection is stateless or stateful, it could be the anonymous ICSS user or the logged in user. Here again, if you have used UME, it is the user id and if you have used ALIAS user, then it is the alias user id. This is just an example. Your runtime context can be different due to many other reasons too.
So, to make this simpler - what is that you are trying to do?
BTW, try not to create multiple threads for the same issue.. -
Function Module to Generate Outbound IDOC for Sales Documents
Hello Experts,
Can someone please help me, I need to know which function module to use in order to generate the outbound IDOC for sales documents. Some of the fm's I have come across are the following:
IDOC_OUTPUT_ORDERS, but actually for Purchase Orders
IDOC_OUTPUT_ORDRSP, but did not generate any IDocs for my sample Sales Order.
Points will be given for any help provided.
Thanks in advance.Hi Nagaraj,
I tried using the IDOC_OUTPUT_ORDERS but I keep getting an error that the Purchase Order <xxx> does not exist, even though the document I tried is a sales order. For everyone's reference here is the code:
form process_data.
DATA v_idoc TYPE edidc-docnum.
DATA i_edidd TYPE TABLE OF edidd.
DATA wa_idoc_ctrl TYPE edidc.
LOOP AT i_nast INTO wa_nast.
CLEAR i_msgs[].
CALL FUNCTION 'WFMC_PROTOCOL_GET'
EXPORTING
cps_nast = wa_nast
tables
messages = i_msgs
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
LOOP AT i_msgs INTO wa_msgs WHERE arbgb EQ 'E0'.
*--- Check first if there is an IDOC
IF wa_msgs-msgv1 IS INITIAL.
CONTINUE.
ENDIF.
v_idoc = wa_msgs-msgv1.
CLEAR i_edidd[].
CLEAR wa_idoc_ctrl.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
document_number = v_idoc
IMPORTING
IDOC_CONTROL = wa_idoc_ctrl
* NUMBER_OF_DATA_RECORDS =
* NUMBER_OF_STATUS_RECORDS =
TABLES
* INT_EDIDS =
INT_EDIDD = i_edidd
EXCEPTIONS
* DOCUMENT_NOT_EXIST = 1
* DOCUMENT_NUMBER_INVALID = 2
OTHERS = 3.
CALL FUNCTION 'IDOC_OUTPUT_ORDERS'
EXPORTING
object = wa_nast
control_record_in = wa_idoc_ctrl
* IMPORTING
* OBJECT_TYPE =
* CONTROL_RECORD_OUT =
tables
int_edidd = i_edidd
* EXCEPTIONS
* ERROR_MESSAGE_RECEIVED = 1
* DATA_NOT_RELEVANT_FOR_SENDING = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK.
ENDLOOP.
ENDLOOP. -
Function Module to fetch Release Code for PReqs
Hi,
Is there any function module to get the current release code applicale by passing the requisition number?
Example : If we have 4 levels of approval, say A1,A2,A3 and A4, and I want to know with what release code shall I release the requisition.
If release has benn effected for the requisition with codes A1 and A2 and if I query with the function module what is the current release code applicable, then it should give A3 or atleast a result that A2 has been the last release code effected.
Also where is the release related info stored ? I mean which tables...
Not the release strategy related info but the release effected info.
Dont worry about points...Hi
Pur requisition Release Codes are stored in <b>T161E</b> table
Release code is linked with Release strategy in <b>T161F</b> table
Link the code with Release strategy field in <b>EBAN</b> table
Also check the fun modules
MM_CHECK_RELEASE_CODE_EQUAL_KI
MM_CHECK_RELEASE_CODE_NOT_KI
ME_RELEASE_REQUISITION
BAPI_REQUISITION_RELEASE
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Function Module Call Via CMOD Logic for Master Data Enhancement
Hi Friends Please help me to resolve this, would really be very kind of all of you.
Requirement. I want to Enhance the field ZFACTREG from VIBDBE table in my datasource 0busentity_attr extract structure l_s_REIS_BUSENTITY_ATTR, I want to create the logic in CMOD exit_saplrsap_002 to call my function module for enhancement of master data. Please help me Step by Step
Thanks
Poonam Roy
<b>Step #1</b>
I put this code which gives me error in CMOD like this
ERROR : Das formale Argument 'OTHERS' muss am Schluss der Ausnahmeliste stehen.
ABAP Code#1 IN exit_saplrsap_002
DATA: l_d_fmname(30) TYPE c.
CONCATENATE 'Z_DS_' i_datasource(25) INTO l_d_fmname.
TRY.
CALL FUNCTION l_d_fmname
EXPORTING
I_DATASOURCE = I_DATASOURCE
I_UPDMODE = I_UPDMODE
TABLES
I_T_SELECT = I_T_SELECT
I_T_FIELDS = I_T_FIELDS
I_T_DATA = I_T_DATA
C_T_MESSAGES = C_T_MESSAGES
EXCEPTIONS
RSAP_CUSTOMER_EXIT_ERROR = 1
OTHERS = 2
IF FOUND.
IF SY-SUBRC <> 0.
RASIE RSAP_CUSTOMER_EXIT_ERROR.
END IF
CATCH CX_SY_DYN_CALL_ILLEGAL_FUNC.
ENDTRY.
<b>Step#2</b>
I simple created the Function module Z_DS_BUSINESS
and put the code in source code which gives me error . what should i put in other tabs like"Import", Export", Tables" i kept blank
ABAP CODE give me error : The Dictionary structure or table "FIELD-SYMBOLS" is either not active. i have to remove include in the FM. WHY SO??
FUNCTION Z_DS_BUSINENSS
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_DATASOURCE) TYPE RSAOT_OLTPSOURCE
*" VALUE(I_CHABASNM) TYPE SBIWA_S_INTERFACE-CHABASNM
*" VALUE(I_UPDMODE) TYPE SBIWA_S_INTERFACE-UPDMODE
*" TABLES
*" I_T_SELECT TYPE SBIWA_T_SELECT
*" I_T_FIELDS TYPE SBIWA_T_FIELDS
*" I_T_DATA
*" C_T_MESSAGES STRUCTURE BALMI OPTIONAL
*" EXCEPTIONS
*" RSAP_CUSTOMER_EXIT_ERROR
INCLUDE ZXRSAU02.
WRITE: / 'INSIDE THE Z_DS_MEASUREMENTS PROGRAM'.
TABLES: REIS_BUSENTITY_ATTR,
VIBDBE,
field-symbols:.<fs_REIS_BUSENTITY_ATTR> like REIS_BUSENTITY_ATTR.
DATA: BEGIN OF i_c_t_data OCCURS 0.
include structure REIS_BUSENTITY_ATTR.
DATA END OF i_c_t_data.
DATA: i_c_t_data_copy like i_c_t_data OCCURS 0 WITH HEADER LINE,
begin of i_vibdbe occurs 0,
INTRENO like vibdbe-INTRENO,
ZFACTREG like vibdbe-ZFACTREG,
end of i_vibdbe.
i_c_t_data_copy[] = i_c_t_data[] = c_t_data[].
sort i_c_t_data_copy by vibdbe.
Select INTRENO
into table i_VIBDBE from VIBDBE
for all entries in i_c_t_data_copy
where INTRENO = i_c_t_data_copy- INTRENO.
if sy-subrc = 0.
sort i_VIBDBE by INTRENO.
loop at i_c_t_data assigning <fs_REIS_BUSENTITY_ATTR>.
clear: i_VIBDBE.
read table i_VIBDBE with key INTRENO = <fs_REIS_BUSENTITY_ATTR>-INTRENO
BINARY SEARCH
transporting ZFACTREG .
if sy-subrc = 0.
<fs_REIS_BUSENTITY_ATTR>-ZZFACTORY = i_vibebe-ZFACTREG
endif.
null(I leave office until Monday morning, Europe time)
in include from customer-exit ZXRSAU01, etc.
CASE I_DATASOURCE.
WHEN '0CUSTOMER_ATTR'.
PERFORM 0customer_attr changing i_t_data...
ENDCASE.
In each perform, doing what you wrote ; select (needed fields) from complementary-database-table into an internal table with a for all entries. sort the table. LOOP and MODIFY on i_t_data.
In some case i had to insert lines of i_t_data to an internal table of DS_structure when entering subroutine and back at exit. (on 4.6C PI 2003 if i remember)
Some optimization done when reading small tables (T001 society and the same, these are filled once and not for each packet of data.
Your idea of creating different FM is of interest, but the cost of passing i_t_data between two programs (two function groups) may overcome the gain of performance. In a job only one DataSource is processed so only one routine is actually called.
Regards.
Maybe you are looking for
-
I can not open PDF files in mail on iPhone 6plus
hhas anyone had a problem opening PDF files in mail. I get a grey screen
-
Itunes has onced worked on my computer with previous settings. I was asked by Itunes to make a necessary update, which I did. Now Itunes will not work on my computer.
-
Goods Receipt Against Purchase Order
Hi All, I am creating a report for goods receipt tracking against purchase order within in date range . If any material documant has been canceld ( 101 to 102 or 103 to 104 ) then it (101 or 103) should not be calculate receipt goods. if 1
-
Import quality issue with AVC/H.264 and workaround
When I import from my Sanyo Xacti HD700 using "Import from Camera..." the import quality has significant blocking / compression artifacts. However, if I copy the same file off the SD card from the camera and play it back in QTplayer it does not have
-
I have recently upgraded to OS X Lion on my MBP C2D, 4 GB. I went ahead to verify my disk which asked me to repair the disk. I inserted the Installation DVD but it gave an error that this DVD won't work on this version of the OS X. It asked me to ins