cancel
Showing results for 
Search instead for 
Did you mean: 

How to run BDC from Portal

Former Member
0 Kudos

Hai guys,

I have expereince in ABAP but new to Portal...

I was asked to run a BDC from protal..(in the sense,a program is devleoped in portal mimicing the action of BDC in R/3)..

earlier i have displayed simple Reports in Portal..(i have created an ivew of type transactionalivew and then assaigned the transaction of the report i created in R/3 to it)

I followed the same procedure for the BDC....but it fails..

it shows messages that

'Field RP50G-SELEC (13) does not exist in the screen SAPMP50A 2000 '

i ahve seen the BDC program in Error mode and noticed that in portal,the BDC is not able to select the respective Action which it wud otherwise do R/3 (like the BDC is supposed to select 'separation' option in transaction pa30..but it is not able to do so)

why?whats the reason ?any alternative solution??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes, there is another way, but I think that the problem is in your BDC record. Check if there are extra screens that you are not handling or an optional field.

1) Create a RFC that will call your BDC.

2) Configure your portal to access your SAP R/3 and choose an option:

2.1) Use a RFC IView as described here: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90fc8a14-a02c-2a10-5a91-82156109...

2.2) Create a Java project and access RFC by JCO (Java Connector): http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm ;

2.3) Create a Web Dynpro project and access RFC by JCO:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c2...

http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/content.htm

2.4) If your SAP is ECC 5 or above, you can expose your RFC as WebServices directly from SAP and access it by Web Services IView, Guided Procedures, Web Dynpro or Visual Composer.

Reward points if its helpful.

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Kumar,

Could you let me know the basis SP and kernel patchlevel of the WebAS where the ITS service is running please...

Secondly, Running BDC through Portal in foreground gives the error as you mentioned, try running BDC in background it works.

Alternative solution is running thorugh RFC or BAPI.

The error is solved in basis SP 14 and Kernel Patchlevel 133.

Reagards

Parth

**Points will be welcomed**

Former Member
0 Kudos

basis sp 14

kernal patchlevel 146

..

also bdc is run in background only...

cant figure how to remove the error..

can u give me details procedure for running trhough RFC pls

Former Member
0 Kudos

1) Goto SE37, create a Function Module, check "Can be called via Remote Call" option,

2) Write a call transaction with your BDC parameters:

http://help.sap.com/saphelp_sm32/helpdata/en/fa/09715a543b11d1898e0000e8322d00/content.htm

Reward points if its helpful.

Former Member
0 Kudos

hi gaurav,

For RFC or BAPI you have to webdynpro. First you have to create BAPI or RFC in ABAP which will server your purpose of uploading data to the tables. Then using Webdynpro you can call that BAPI or RFC using MVC architecture and deploy it on Portal.

And the cause of getting error while running BDC in foreground through portal might be that ITS is not able to generate screen for subscreen for OK-CODE.

Regads

parth

**Points will be welcomed*

Former Member
0 Kudos

Hi Kumar,

If you are creating a RFC for the BDC, you can run the RFC very easily from portal using "SAP RFC iView".

Regards,

Shemim

Former Member
0 Kudos

the problem is in the SUBSCREEN the program is unable to pick any action that is available after scrolling...(like it is able to pick HIRING )..only the forst 5 actions (which are visible wihtout scrolling ) are able to run ,rest dont make sense to the program,when run in portal...

any remedies,alternative solutions???/

will this problem not arise when the BDC is run via RFC??

Please help

Former Member
0 Kudos

HI,

What i mean by creating RFC is not running BDC inside it.. wht i want to say is that your RFC should able to handle updation of table fileds based on the inputs picked from the file. Running BDC in background or Running RFC would be the same. As you already said if you run BDC in Background it works.

I prefer to run BDC in Background.

Regards

parth

**Points will be welcomed*

Former Member
0 Kudos

it doesnt change a bit even if i run in background mode.....

Former Member
0 Kudos

This should not be the case i check that when i run the BDC in Background using screen Mode as "NO screen display" or "N" it worked fine for me.

Regards

parth

Former Member
0 Kudos

hi parth,

i checked...it doesnt work for me(yes i selected N in BDC selection screen)

however,the problem got solved(temporarily) this way,

i asked functional guy to shift the item in row 13 to row 1 of the subscreen (which was creating the problem)..

so now in PA30 ..Separation is palced 1 instead of 13..

so now in portal,

it is able to pick the action correctly...

so the problem is actualy in portal,the BDC recognises only items which are visible(items which appear after scrolling cannot be identified by BDC)

how to correct it?

thanks for u r inputs..

Former Member
0 Kudos

can any one say as to where the problem is ?

so that i can find relevant patches or something...

as of now the situation is like this..

i have done a BDC which works fine in R/3.....

but fials in PORTAL...

the reason being,

the BDC picks a record in a subscreen which has a table in a grid..the table has 15 records...5 records are visible normaly in portal(and 10 in R/3) rest of the record are visible after scrolling...

the BDC has to pick record at 14 position...it picks corectly in R/3...but when it comes to portal..the BDC stops and one has to manualy scroll and pick the record...

alternativley i have made the reocrd appear at 1 position...and everything is fine..

but whats the permanent solution?

is it related to portal..(like for BDC scrolling in portal is failing)

any alternative ways?

(the BDC is related to SEPARATION action in PA40)

Former Member
0 Kudos

is it related to PATCHES???

Former Member
0 Kudos

is it related to PATCHES???

Former Member
0 Kudos

is it possible? to execute a BDC program in PORTAL????