on 07-12-2013 9:05 AM
Hello All,
I would require your help in this issue:
Need a BAPI/FM which takes input as Purchase Order number and Output as the URL
which Buyer will use this URL and clicks to login into Buyer portal.Here Opentext is third party system.
The Business requirement is:
Can anyone throw some light on this issue like how this can be technically done.
Thanks,
Chitra
Hi,
Try the below code:
DATA: url TYPE string,
it_url_params TYPE bbpt_url_params,
ls_url_param LIKE LINE OF it_url_params.
ls_url_param-paramname = 'SAPSRM_BOID'.
ls_url_param-paramvalue = 'GUID_OF_BO' <--GUID of PO in your case
APPEND ls_url_param TO it_url_params.
CALL METHOD /sapsrm/cl_url_service=>get_url
EXPORTING
iv_bo_type = 'BUS2201' <-- BUS type of BO
iv_url_scope = 'INT' <--Link is for internal / external users can be INT or EXT
it_url_params = it_url_params
RECEIVING
rv_url = url.
Thanks,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have a closer look at Report /SAPSRM/OFFLINEAPPROVALSEND.
It does something similar to your requirement though it's for sending offline approval E-Mails.
You will have to find the part of code where the link to SRM System an the corresponding Purchasing document is created.
Regards
Stephan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Play around a bit with the following class: /SAPSRM/CL_URL_SERVICE. This class will generate a URL for you, providing you give the correct attributes such as SAPSRM_BOID (PO number) and some additional variables as well (interface /SAPSRM/IF_CH_WD_URL_PARAM_C gives all possible parameters).
You just need to generate the link to the po you need to change. If a user clicks on the link automatically a logon page is displayed (if there is no single sign on active).
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chitra,
there is no BAPI/Function for that, You will need to develope it.
Best Regards
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.