‎2009 Feb 05 5:42 AM
Hi,
I have a criteria two Insert two numbers to a Ztable:
ZADD_VALUESthrough a RFC ZADD_VALUE.
There are two export values: Num1 like INT1 and Num2 like INT2.
The logic is:
INSERT INTO ZADD_VALUE VALUE NUM1,NUM2.NUM1 is primary key.
When I am activating this module, I am getting REPORT OR INCLUDE Program missing.
What I need to do?
I need a proper help on writting some RFCs.
Regards
Neha Singh.
‎2009 Feb 05 6:07 AM
Hi,
At the time of activation when you get the popup window then select all the options present there and then click on activate, may be this will solve your problem.
‎2009 Feb 05 5:57 AM
Hi Neha ,
> Just make sure that on top of your program some like ' REPORT ZPROG ' or 'INCLUDE ZPROG' is there . This sholud be the first line of your program always .
Your error might get rectifird !
> And since your appending a primary key value make sure that there are no duplicates .
Hope it helps!
Much Regards ,
Amuktha .
‎2009 Feb 05 6:02 AM
Hi,
In your FM, go to the attributes,
In the General data tab, click on program name and activate it.
thanks\
Mahesh
‎2009 Feb 05 6:07 AM
Hi,
At the time of activation when you get the popup window then select all the options present there and then click on activate, may be this will solve your problem.
‎2009 Feb 05 6:31 AM
Hi, Neha
This Problem may come because of ,if your function group is not active.
So,Please activate the function group in which your function module is present.
then you activate the function group .
‎2009 Feb 05 6:34 AM
Hi Neha,
SE11
Tablename - ZADD_VALUE
Fields :
NUM1 type ZData Element1(maintain technical attributes)
NUM2 type ZData Element2(maintain technical attributes).
SE37
FUNCTIONMODULE NAME - ZFUNMOD(MAKE SURE REMOTE ENEBLED )
IMPORT TAB - NUM1 TYPE ZDATAELEMET1
- NUM2 TYPE ZDATAELEMENT2
SOURCE CODE:
DATA:
FS_TABLE TYPE ZADD_VALUE.
FS_TABLE-NUM1 = NUM1.
FS_TABLE-NUM2 = NUM2.
INSERT ZADD_VALUE FROM FS_TABLE.
This Code Will insert the records in the database table.
Thanks
Nithya
‎2009 Feb 09 5:42 AM
Hi,
When I need to put two input values: Num1 and Num2;
these values should be declared as Export variables and not as Import Variables
in RFC.
Also, I am missing something.
Even if the RFC is being shown in Java Web Dynpro application after creating
Import RFC Model.
I am not able to map the Component Controller Data attributes with RFC Model Data Attributes.
Regards
Neha Singh.
‎2009 Feb 09 5:59 AM
Hi Neha,
You can decalre it as export or import, depending on your rquiremnt...i didnt get you here.
I am not able to map the Component Controller Data attributes with RFC Model Data Attributes ?
You mean you have diffrent data declartion in another system for the variables Num1 /Num2 when compared with SAP rfc FM.
revert back,
Regards,
naveen
‎2009 Feb 09 9:05 AM
Hi Naveen,
I found out the problems.
If we declare any variable as Export variable, then that variable is supplied to the RFC.
If we declare any variable as Import variable, then that variable is returned by the RFC.
The Java Web Dynpro View has an UI Inputfield which can take String variable.
Now, in code we need to typecast this to Integer value so, that it can map to our RFC.
As RFC has Integer as Export varialbles.
Regards
Neha Singh.
‎2009 Feb 09 9:14 AM
Hi Neha,
You can do this by using field symbols with in RFC Function module.
declare the NUM1 as type string.( check values before passing to FM , shouldn't contain any alpahbets/special char)
and within RFC fm you can change the type to Integer through Field symbols.
Revert back if any issue.
Regards,
Naveen
Edited by: Naveen Deva on Feb 9, 2009 10:14 AM
‎2009 Feb 09 10:42 AM
Hi Naveen,
I need two help.
First I need the Java Web Dynpro API Documentation.
We have SAP MDM API Documentation.
It should deal with all the packages, interfaces and classes used in
Java Web Dynpro.
It should be something like Java Doc.
Second, I need some document which deals with mapping value attributes of Component
Controller with Model attributes.
It is done by writting some code.
Regards
Neha Singh
‎2009 Feb 09 10:55 AM
Hi,
You can search with title "Web Dynpro for ABAP" realeased by SAP, it is in PDF format, as it is huge doc, am unable to send it. hope you may find that..
Revert back if any issue.
Regards,
Naveen
‎2009 Feb 09 11:14 AM
Hi,
You can find doc. on WebDynpro for Java at-->
http://help.sap.com/saphelp_nw70/helpdata/EN/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
when you are creating the context mapping in WebDynpro Java with the RFC you have to link your context with RFC ZADD_VALUE_Input
Basically, when you want to pass data from Java to RFC then you have to use the ZADD_VALUE_Input context and when you want your ouput (that is data from RFC to Java) then you have to use ZADD_VALUE_Output
Hope this was of some help..
Regards,
Sagar
‎2009 Feb 09 5:37 AM
My problem is answered. But thread is now extended so, I need to keep it open.
‎2009 Feb 09 5:49 AM
if this is an RFC, u might be calling it from the other system where ur hving this table..right...
so after calling this RFC, get these 2 values into workarea and insert into the table.
‎2009 Jul 15 11:26 AM
Hi,
I have successfully worked in RFC Model.
Regards
Neha Singh
SAP MDM Consultant