cancel
Showing results for 
Search instead for 
Did you mean: 

PCUI: Automatically open a BP in change/create mode

Former Member
0 Kudos

Hello all,

From a custom i-view in the portal with some name and address fields, i would like to call accounts(business partner) change (if an account exists) or call account creation, automatically filling in some fields from my custom i-view.

So the question is:

- Can i automatically open account maintenance for a certain account, via an url call or something?

Is there anyone who knows how to realize this?

Kind regards,

Martijn de Jong.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Gregor,

Thnx for yout input.

I'm gonna proces this FM in a BAPI which i will call from my Web Dynpro App. But how do i then open this url automatically? Is that just a simple bsp call from within my BAPI?

Kind regards,

Martijn.

gregorw
Active Contributor
0 Kudos

Hello Martijn,

I've thought you will provide your user a link to the account to go for editing. When I've got you right you want to provide the edit functionality directly in your WebDynproApplication. I don't know if WebDynpro supports frames or IFrames. Then you can do it.

Regards

Gregor

Former Member
0 Kudos

Hello Gregor,

My Web Dynpro App will be an application in an I-view in the portal. Basically what i want is that from that new application i open the standard PC-UI application in the portal for maintaining business partners with a business partner which i used in my WD-application. Any suggestions?

Also i saw in your code example that you have an exporting parameter "ep_base_url", what do i put in that variable?

Kind regards,

Martijn.

gregorw
Active Contributor
0 Kudos

Hello Martijn,

1. I would suggest to provide a link to the PC-UI Application.

2. The Base URL is: http://server.test.com/irj/portal

Regards

Gregor

Former Member
0 Kudos

Hello Gregor,

I'm gonna create a testcase to test this functionality.

Thnx for your input.

Kind regards,

Martijn de Jong.

Former Member
0 Kudos

Hello Gregor,

It just works partly. As a testcase, i linked the url to a custom tabpage which i added to the BP. This results in showing the portal content studio, which is the start page of the portal, but within the new tabpage.

So the link opens the portal, but doesn't goto the application.

The created link (without the base url):

/roles/com.sap.pct.crm.SalesManager/AccountsProducts/nf/nf_2/

MaintainAccounts?SAP_QueryString=

CRM_OBJECT_TYPE%3dACCOUNTCRM

%26CRM_BOR_TYPE%3dBUS1006

%26CRM_OBJECT_ID%3d300000

%26CRM_LOGSYS%3dCROCLNT010

%26sap-syscmd%3dnocookie

&~logical_system=CROCLNT010

&~object_type=BUS1006

&~object_key=300000

Some more suggestions?

Regards,

Martijn.

Message was edited by: M. de Jong

Message was edited by: M. de Jong

gregorw
Active Contributor
0 Kudos

Hello Martijn,

can you please add some line breaks to the URL that it gets wrapped. Now we have to scroll to read your message.

Is the Object Link working in the Portal PC-UI with that User and for this Object? First try to get it working there. Then you can go on trying it in your own application.

Regards

Gregor

Former Member
0 Kudos

Hello Gregor,

What is the Object Link(is that the complete URL?) and how can I test if it works in the Portal?

What parts of the url represent the "user" and the "Object?"?

I've copy-pasted the url into the address-bar but this also brings me to the first page......

Regards,

Martijn.

gregorw
Active Contributor
0 Kudos

Hello Martijn,

I presume that you have the Portal installed with the Business Package for CRM. Now you should get a User which exists in the Portal and CRM. Assign this User in CRM the Role SAP_PCC_SALES_REP and in Portal SalesRepresentativeFPS.

When you now logon to the portal you should see in the Main navigation the Point Account. Open it and then open Contacts. Search of a Contact. In the list of Contacts you should see a link back to the Company of the Contact. This is a Object Link.

With that User account you also can test the Function Module mentioned before. That should return you a correct Link.

Regards

Gregor

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

Hello Martijn,

to create the Link in your iView you can use the Function Module CRM_PRT_GET_SINGLE_NAV_INFO in CRM which is used in CRM for the Object Link generation.

Here a small example in ABAP which I use to create the link from a R/3 ALV to a CRM Opportunity:

*
* Create Portal URL
*
  call function 'CRM_PRT_GET_SINGLE_NAV_INFO'
    exporting
     bor_object_type         = 'BUS2000111'
     crm_object_type         = 'OPPORTUNITYCRM'
     object_id               = opp_id
     method                  = 'DEFAULT'
*         LOGICAL_SYSTEM          =
     nav_model_version       = '0'
     ep_base_url             = ep_base_url
     ep_version              = '6.0'
   importing
     ex_url                  = ex_url
*       TABLES
*         IM_PARAMETERS           =

Regards

Gregor