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

RFC Function Module to call BDC Recording Script

venkatasap
Participant
0 Likes
2,468

Hi SapAll.

i have got a requirement to call a BDC Recording script from a remote function module to call a ZTransaction

here i just want know about what are the requirements to do the BDC Call Transaction in the remote function module.

can any body conform me that is this the right way of calling bdc from RFC.

will be waiting for your response.

regards.

Varma

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,758

hi

Once SHDB is done for the transaction , you can Press the function module button in top(Shift +f7) in the recording overview screen. same as per the report you can write the codings.(Specify RFC name ,Function group and description)

11 REPLIES 11
Read only

Former Member
0 Likes
1,758

Hello,

There is no difference in calling a BDC transaction from within a report or when written in a remote function module. You can just copy paste the coding part of the BDC in the RFC FM and it will work just it works in a normal report. Just make sure you pass the correct parameters (Import, Export /tables) in the RFC FM.

Vikranth

Read only

Former Member
0 Likes
1,759

hi

Once SHDB is done for the transaction , you can Press the function module button in top(Shift +f7) in the recording overview screen. same as per the report you can write the codings.(Specify RFC name ,Function group and description)

Read only

0 Likes
1,758

Hi .

I Remember that we must declare the class with name BDCMSGCOLL,but iam not sure that this class should be decared when we use BDC Call Transaction.

can you help me in providing the predefined classes for doing the bdc.

regards.

Varma

Read only

0 Likes
1,758

hi

BDCMSGCOLL is structure name for getting message.

This RFCfor getting the system message.

Read only

0 Likes
1,758

Hi.

i have created the rfc with structure (under tables tab) but when i put the structure field in the bdc code with in form ,end form.

it is raising the error as

field strucuture wagons_fr-equino is unknown,it is neither in one of specified tables nor defined by data statement.

will be waiting for the best anser.

regrds.

Varma

Read only

0 Likes
1,758

hi

You hav to create structure and table type in se11 and check the declaration in RFC of the tables.

Read only

0 Likes
1,758

Hi.

yes, as u said i have created the structure in se11 and assigned the same structure in in se37(rfc).

i also used the the structure field in the bdc code with in form,endform.

but still rasing the same error.

can any body help me in this.

regards.

Varma

Read only

0 Likes
1,758

hi

data:lt_itab type table of zstr_sample.

form check tables zstr_sample.

coding..

endform.

perform check tables lt_itab.

Read only

0 Likes
1,758

Varma,

Check, what type you are assigning in RFC. is is Tables & import or Export.

Where you declaired it?

Cheers

Raj

Read only

Former Member
0 Likes
1,758

Hi Varma,

Ya, you can call BDC from RFC.

first go to Trn SHDB in that you must do the recording with you Z Transaction.

Save it.

Select that Recording & select the option copy into pgm.

Then copy all the performence code & copy into ur RFC.

Insted of ur values put ur parematers that u r passing to RFC.

I hope it helps.

Cheers

Raj

Read only

0 Likes
1,758

yes i created the form in include LYSC_SDF01 of the function module,with in that include i have copied the bdc code

in the that bdc code i have submitted the structure field(which is created in tables tab of the RFC).

But still rasing the error as structure field is unknown.

will be waiting for good answer.

regards.

Varma