‎2010 Mar 02 11:32 AM
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
‎2010 Mar 02 11:46 AM
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)
‎2010 Mar 02 11:38 AM
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
‎2010 Mar 02 11:46 AM
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)
‎2010 Mar 02 11:50 AM
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
‎2010 Mar 02 12:10 PM
hi
BDCMSGCOLL is structure name for getting message.
This RFCfor getting the system message.
‎2010 Mar 02 12:38 PM
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
‎2010 Mar 02 12:42 PM
hi
You hav to create structure and table type in se11 and check the declaration in RFC of the tables.
‎2010 Mar 02 12:44 PM
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
‎2010 Mar 02 12:51 PM
hi
data:lt_itab type table of zstr_sample.
form check tables zstr_sample.
coding..
endform.
perform check tables lt_itab.
‎2010 Mar 02 1:58 PM
Varma,
Check, what type you are assigning in RFC. is is Tables & import or Export.
Where you declaired it?
Cheers
Raj
‎2010 Mar 02 1:55 PM
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
‎2010 Mar 02 2:00 PM
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