Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting error while activating the RFC.

Former Member
0 Likes
1,954

Hi,

I have a criteria two Insert two numbers to a Ztable:

ZADD_VALUES

through 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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,898

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.

15 REPLIES 15
Read only

Former Member
0 Likes
1,898

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 .

Read only

former_member222860
Active Contributor
0 Likes
1,898

Hi,

In your FM, go to the attributes,

In the General data tab, click on program name and activate it.

thanks\

Mahesh

Read only

Former Member
0 Likes
1,899

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.

Read only

Former Member
0 Likes
1,898

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 .

Read only

Former Member
0 Likes
1,898

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

Read only

0 Likes
1,898

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.

Read only

0 Likes
1,898

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

Read only

0 Likes
1,898

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.

Read only

0 Likes
1,898

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

Read only

0 Likes
1,898

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

Read only

0 Likes
1,898

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

Read only

sagarmehta
Product and Topic Expert
Product and Topic Expert
0 Likes
1,898

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

Read only

Former Member
0 Likes
1,898

My problem is answered. But thread is now extended so, I need to keep it open.

Read only

Former Member
0 Likes
1,898

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.

Read only

Former Member
0 Likes
1,898

Hi,

I have successfully worked in RFC Model.

Regards

Neha Singh

SAP MDM Consultant