How to define FORMAL parameters for TABLES in OOPS?
Hello Experts,
Below is the custom code, would like to put in a user-exit
PERFORM my_routine
IN PROGRAM my_report
TABLES standard_sap_vbap_tab
USING standard_sap_variable
CHAGING standard_sap_variable
Pls. let me know How to write the FORM in perspective of data objects defination in OOPS for the above routine.
FORM here_pl_let_me_know_how_to_define_the_data_objects
ENDFORM.
Thank you
Moderator message: please search for available information/documentation before asking.
Edited by: Thomas Zloch on Nov 10, 2010 3:40 PM
This is a very basic question. F1 help on statement form will do.
Similar Messages
-
Hi Experts,
i am using a RFC FM to from SRM system to ERP system. in ERP system the RFC FM parameters refer to some structures or tables which are not in SRM system.
but i should transfer these parameters in SRM system to call this RFC.
can anyone tell me how to define the parameters in SRM system?Hello,
I also had to work with RFC to call SRM function module from an ECC system. I recommend you very strongly to create your own RFC function module in SRM and your own DDIC structures in both systems with just the fields you need. This custom SRM RFC function module, map the parameters to the standard 100+ field DDIC structure and call the SRM function module (not using RFC at this time of course).
Why did I say "very strongly" : DO NOT duplicate the 100+ field DDIC structure from SRM to your RFC client system (by transport or manual copy), because some support packages add fields to some include structures of the complex structure, and they are inserted somewhere in the middle, and so it probably makes obsolete your duplicated DDIC structure.
Hope it's clear
sandra -
How to define a Value for an Attribute of an Class
Hi,
How to define a Value for an Attribute of a Class ...
( I need to change the value of an Attribute of a class in standard program ....
Ex...
cl_hrce_masterswitches=>infotype_framework_is_active
Here infotype_framework_is_active is the attribute .. its value in standard program is 'X'... Now i need to change it as ' '.
How to define it and set value as ' '.Hello Surendar
The static attribute INFOTYPE_FRAMEWORK_IS_ACTIVE is read-only and there is not SETTER method to manipulate its value.
However, the attribute is filled in the CLASS_CONSTRUCTOR:
METHOD class_constructor.
IF ce_is_active = true OR
global_payroll_is_active = true OR
mngmt_global_empls_is_active = true.
infotype_framework_is_active = true.
perid_infotype_is_active = true.
ELSE.
infotype_framework_is_active = false.
perid_infotype_is_active = false.
ENDIF.
ENDMETHOD.
Thus, you need to analyze how attribute CE_IS_ACTIVE, GLOBAL_PAYROLL_IS_ACTIVE and MNGMT_GLOBAL_EMPLS_IS_ACTIVE are filled in the CLASS_CONSTRUCTOR.
For sure you will find customizing settings that are responsible for this.
Regards
Uwe -
How to create a record for table PLAF with order type 'NB'.
How to create a record for table PLAF with order type 'NB'(standard purchase order).
who can tell me the T-code or some usefull information?
Thanks.Hi
This will be updated automatically when generate planned orders thru MRP. (MD02)
regards
Srinivas -
how to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header ,20 for detail and 30 for footer.
here is the sample file
DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\ 2013/09/25 01:19:08 BILLEND
DDWTYBILL13092502572 2000000212PRIVATE PRIVATE STY5572142 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731543 Suspect TB ?CA, (L) EMPIEEM Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000312PRIVATE PRIVATE STY5572149 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731548 Empyema BPF Ward A2 TYGERBERG HOSPITAL Z03.9 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000412PRIVATE PRIVATE STY5572351 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731584 Suspect TB ?EMPIEEM, ?CA Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000512PRIVATE PRIVATE STY5572352 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731585 Suspect TB ?EMPIEEM, ?CA Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000612MAJOR MAJOR STY5577530 010700 INV 12ZTYG000009 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS ZOZI,S,SIYAMBONGA 27-MAR-2010 TYG D3 DR MAHOMED 5602181 113799662 TB731663 Lymphadenitis Ward D3 TYGERBERG HOSPITAL I88.9 Z03.9 H1 07-AUG-201307-AUG-201324-SEP-2013MEND 58.52
DDWTYBILL13092502572 2000000712MAJOR MAJOR STY5577537 010700 INV 12ZTYG000009 06-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS DLAMINI,N,NTLANTLA 09-OCT-1976 TYG F1 DR WZESE 5602181 135524676 TB731666 Suspect TB Ward F1 TYGERBERG HOSPITAL Z03.0 Z03.9 H1 07-AUG-201314-AUG-201324-SEP-2013MEND 58.52
DDWTYBILL13092502572 30003034120000003032ENDYou can create an nXSD using Native Format Builder and use lookAhead attribute to read values at specific position and use that as the choice. You can find an example here
http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994/nfb.htm#BGBBAJFD -
How to define Substitution rule for Businee area
Hi experts,
Could you please guide me to define substitution rule for Business are.
Below is the requiremnt :
I want to assign different business area for this cost centre.
While posting document in FB01, we are entering cost centre in line itme. Businee area is picking from cost centre master.
Example : Cost centre 11310 and businee area Y020.
Businee area Y020 is picking from cost centre 11310 while posting document.
I want to assign different business area for this cost centre.
For that I want to define substitution rule.
I have defined substitution rule and activated in comapany code but it is not working. Please guide me how to define Substitution rule for the same.
I have defined prerequisit as Comapny code = 2053 and Cost centre =11310 and transaction code = FB01 then
Substitute business area with Y045.
It is not working .
Please guide me where I did mistake and how to rectify the same.
Thanks in advance for your quick response and points will also assign for helpfull answer.
Regards,
AmarHi Paul,
Thaks for your reply.
Yes, you are correct. SAP is changing this back to BA from Cost centre.
Why can't we use Substitition for the above issue.
Then what is solution for my issue.Please suggest any alternative solution.
Thanks in advance for your help.
Regards,
Amar. -
How to define Approval Hirearchy for Fixed Assets?
Hello All,
Couls someone please tell me How to define Approval Hirearchy for Fixed Assets which should be different as compared to normal item purchase.Reply me ASAP
Regards
AdityaHi,
The AP invoice approval used AME rules for finding the approver. You can base you AME rules on virutally anything.
In this particular case, you can base your AME rules on one of the followings:
1. If any of the Distribution Accounts contain Fixed Assets natural account
2. You can define a separate document category which should be used with invoices for FA Purchase and use the category in AME rules to find approver
3. You can have a DFF at the Invoice Header level to indicate that this is a fixed asset purchase invoice and have this DFF to be used in AME rules.
Gajendra -
How to define new colors for the form?(Finish)
Hello! Everyone!
I want to define new colors for the new form.
But I don't find where I can define it.
How to define new color for the form?
Thanks in advance!You have to set the Canvas color or as I said earlier you need to use one of the available color schemas on the OAS or Builder runtime.
If you want to use user defined colors in the builder, then you need to create a new color palette and use it.
I personally haven't tried it, but there is a section in the online help that describes how to do this.
Tony -
Can't define init parameters for multiple servlets
I want to define init parameters for two servlets in the web.xml file but i only get null for my Login servlet
<web-app>
<servlet>
<servlet-name>
RSServlet
</servlet-name>
<servlet-class>
RoadSafe.Servlet.RSServlet
</servlet-class>
<init-param>
<param-name>serverip</param-name>
<param-value>localhost</param-value>
</init-param>
<load-on-startup>
2
</load-on-startup>
</servlet>
<servlet>
<servlet-name>
Login
</servlet-name>
<servlet-class>
RoadSafe.AdMisc.Login
</servlet-class>
<init-param>
<param-name>serverip2</param-name>
<param-value>localhost</param-value>
</init-param>
<load-on-startup>
1
</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>
RSServlet
</servlet-name>
<url-pattern>
/RSServlet
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
Login
</servlet-name>
<url-pattern>
/Login
</url-pattern>
</servlet-mapping>
</web-app>In the code for you Login servlet, are you using the name "serverip2" to access the initial parameter ?
Thats the name you have used in the web.xml file. -
How to do hibernate mapping for table or view without a primary key
Hi,
Anyone knows how to do hibernate mapping for table or view without a primary key?
thanks.
ccor you can make all column primary key .Anybody seriously considering that as a good idea should understand the implications:
1. this requires that each row be unique - that's a minor issue normally, but can be a significant problem in some cases
2. in practically all databases, a primary key constraint creates a unique index - this has many implications:
a) in most databases, the index stores a copy of the column data that is indexed - this suggestion therefore more than doubles the data storage required for the data
b) whenever an indexed column is changed, the index has to be maintained - this suggestion then more than doubles the work that each UPDATE statement has to do, since both the table and the index have to be maintained for any UPDATE at all
This might work OK for toy projects, but it doesn't scale well at all... -
How to define the texts for UI element Dropdownlistbykey?
Hi everyone,
I don't know how to define the texts for Dropdownlistbykey. It seems that Dropdownlistbykey has an attribute "selected key", but where can I bind the texts I want to display when user clicks the downwards
arrow?
Thanks in advance.hi,
you can use this code :
method WDDOINIT .
DATA : node_info TYPE REF TO if_wd_context_node_info,
value1 TYPE wdy_key_value,
set TYPE wdy_key_value_table,
k1 type string value 'M',
v1 type string value 'MAGO',
k2 type string value 'S',
v2 type string value 'Saurav'.
value1-key = k1.
value1-value = v1.
APPEND value1 to set.
value1-key = k2.
value1-value = v2.
APPEND value1 to set.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node('FOR_DROP').
node_info->set_attribute_value_set( name = 'DROP_KEY' value_set = set ).
I hope it helps.
Thanx. -
How to define this FORMAL parameters for a std. SAP itab?
Hello Experts,
Am writing a custom PERFORM in a standard SAP include-RVCOMFZZ by using modification assistant, like below,
RVCOMFZZ:
PERFORM my_routine IN PROGRAM my_report USING com_vbapvb.
(here com_vbapvb is a TABLES parameter with STRUCTURE of vbapvb in the std. sap FM).
my_report:
FORM my_routine USING here_I_want_to_know_the_data_object
ENDFORM.
Here pls. let me know How to define the FORMAL parameters of my_routine? I tried with different options, but did not worked out. Preferable let me know in OOPS concepts (not using TABLES)
Thank youHi,
here is example how to write you structure content regardless what com_vbap has field list.
PERFORM my_routine IN PROGRAM my_report USING com_vbapvb.
FORM my_routine USING here_I_want_to_know_the_data_object.
field-SYMBOLS: <field> type any.
do 100 times.
assign COMPONENT sy-index of structure ls_VBAPVB to <field>.
if sy-subrc = 0.
write:/ <field>.
else.
exit.
endif.
enddo.
ENDFORM.
Bye Jan -
How to set single parameters for two tables?
SELECT GM.GRNNO,GM.GRNDATE,SUM(GS.APPROVED),SM.ISSUENO,SM.ISSUEDATE,GS.ITEMCODE,SUM(SS.ISSUEDQTY)
FROM IMS_GRNM GM,IMS_GRNS GS, IMS_ISSUEM SM, IMS_ISSUES SS
WHERE GM.GRNMSERIAL=GS.GRNSSERIAL
AND SM.ISSUEMSERIAL=SS.ISSUESSERIAL
AND GM.POSTED='T'
AND SM.POSTED='T'
AND GS.ITEMCODE=SS.ITEMCODE
AND GS.ITEMCODE='01-01-02-019'
AND *******
GROUP BY GM.GRNNO,SM.ISSUENO,GM.GRNDATE,SM.ISSUEDATE,
GS.ITEMCODE ORDER BY GM.GRNDATE,SM.ISSUEDATE;
******* here i have to select the data from both the tables between two parameters named :P_1 and :P_2.
the date column in IMS_GRNM is named as GRNDATE.
the date column in IMS_ISSUEM is named as ISSUEDATE.
how to set such parameters???I think all you need is
Where table1.column1 between :p1 and :p2
and table2.column2 between :p1 and :p2 -
How to log input parameters for Function Modules?
Hi,
I need to create a Logging system to trace input parameters for function modules.
The log functionality could be done by developing a class method or a function module (For example 'write_log'), and calling it within each function module that I want to log. The 'write_log' code should be independent from the interface of the Function Module that I want to log.
For example, I'd like to write a function/class method that can log both these functions modules:
Function DummyA
Input parameters: A1 type char10, A2 type char10.
Function DummyB
Input parameters: B1 type char20, B2 type char20, B3 type char20, B4 type Z_MYSTRUCTURE
Now the questions...
- Is there a "standard SAP" function that provide this functionality?
- If not, is there a system variable in which I can access runtime all parameters name, type and value for a particular function module?
- If not, how can I loop at Input parameters in a way that is independent from the function module interface?
Thank you in advance for helping!check this sample code. here i am capturing only parameters (import) values. you can extend this to capture tables, changin, etc.
FUNCTION y_test_fm.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(PARAM1) TYPE CHAR10
*" REFERENCE(PARAM2) TYPE CHAR10
*" REFERENCE(PARAM3) TYPE CHAR10
DATA: ep TYPE STANDARD TABLE OF rsexp ,
ip TYPE STANDARD TABLE OF rsimp ,
tp TYPE STANDARD TABLE OF rstbl ,
el TYPE STANDARD TABLE OF rsexc ,
vals TYPE tihttpnvp ,
wa_vals TYPE ihttpnvp ,
wa_ip TYPE rsimp .
FIELD-SYMBOLS: <temp> TYPE ANY .
CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
EXPORTING
funcname = 'Y_TEST_FM'
* INACTIVE_VERSION = ' '
* WITH_ENHANCEMENTS = 'X'
* IGNORE_SWITCHES = ' '
* IMPORTING
* GLOBAL_FLAG =
* REMOTE_CALL =
* UPDATE_TASK =
* EXCEPTION_CLASSES =
TABLES
exception_list = el
export_parameter = ep
import_parameter = ip
* CHANGING_PARAMETER =
tables_parameter = tp
* P_DOCU =
* ENHA_EXP_PARAMETER =
* ENHA_IMP_PARAMETER =
* ENHA_CHA_PARAMETER =
* ENHA_TBL_PARAMETER =
* ENHA_DOCU =
EXCEPTIONS
error_message = 1
function_not_found = 2
invalid_name = 3
OTHERS = 4
IF sy-subrc = 0.
LOOP AT ip INTO wa_ip .
MOVE: wa_ip-parameter TO wa_vals-name .
ASSIGN (wa_vals-name) TO <temp> .
IF <temp> IS ASSIGNED .
wa_vals-value = <temp> .
ENDIF .
APPEND wa_vals TO vals .
ENDLOOP .
ENDIF.
ENDFUNCTION. -
How to define Side Panels for linked to Child Window Applications
We are trying to use the NWBC Side Panel with PPM 6.0 in NWBC 3.5. We have a Role that has a menu defined that gives the users a link to the INM_WORKCENTER_APP which displays the current user's Tasks in a table.
When we click on a task in the table it opens the task details using the CPROJECTS_FPM application in a new window. This new window that opens up doesn't have any of the Side Panels that we have defined on the role with the main menu links.
We have tried to add the side panel using different application alias and at different levels in the Role, but can't get a Side Panel to show up on the child window. We even tried to switch the window to open INPLACE in the main window and it still switches to no side panels. The only side panels we are able to see is side panels that the user has manually added under connections and the Data Context Viewer side panels.
Is NWBC capable of having side panels to be defined to be available for these linked to child applications that are called from a main application screen? If so, what is the possible configurations we need to make on the role for this to work properly?
Thanks in advance for any help!Wanted to close this thread with the solution that worked for us.
We had to change the Launchpad configuration for Role CPROJECTS Instance OIF. We changed the Application from a Web Dynpro ABAP type to Object Based Navigation. Set the Application Parameters Business Object to PROJECT and Operation to DISPLAY.
Then for our role defined in PFGC for our NWBC, we added a new menu item to the Web Dynpro application CPROJECTS_FPM with Configuration CPROJECTS_FPM. Then under Object Based Navigation we set the Object Type to PROJECT and Method to DISPLAY to match what we set above in the Launchpad. Then set the menu item to be invisible since we didn't want it to show to users.
Now when we launch the child window it uses OBN and sees the definition in our role and utilizes the same Side Panel definitions defined for the role.
Maybe you are looking for
-
Error in replication from CRM to ISU
Hi.. I am trying to replicate the Business Partner (BP) from CRM to ISU or R/3 but it does neither replicated nor comming in RFC Queque. When I checked in BDOC message , SMW01 it shows an error like <b>Could not determine module name: BUPA_MAIN GENKE
-
Java.lang.NullPointerException when doing SQL on ms access
I am trying to perform Insert and delete commands on an access database and I continue to get a java.lang.NullPointerException when performing the action. Everything is fine when i do a Select * FROM..., I am able to read all of the information I ask
-
Is there away to pair desktops in Mavericks?
Prior to Mavericks, I had an application set up (Bloomberg Anywhere via Citrix) on a single desktop but with several windows over both displays. I could switch between desktops with a simple three finger swipe. Now, with Mavericks, I have to go to
-
How do I backup and restore an Iphone that is totally destroyed and not functioning in any way
My iphone fell off the back bumper of an ambulance and was run over. Probably several times. The case held it together but the screen is TOTALLY destroyed and I can't do anything on the phone. I have the replacement now but when I try to restore the
-
Excise Registers (India) - Level of data display
Hi, I Need the excise registers ( RG-1 etc.) at the Chapter.Heading.Subheading level. And not at the item level. Regards Manish Edited by: Rui Pereira on May 1, 2009 2:42 PM