cancel
Showing results for 
Search instead for 
Did you mean: 

Copy transaction BBPSC01

Former Member
0 Kudos

Hi gurus.

We want to have some fields available or not depending of a zfield for our SC. Moreover our zfield value must be the same and not changeable for all lines in a SC.

The idea is to determinate the process flow and rules from the fist moment. So a possibility can be to create several transactions as copy BBPSC01 transaction.

So the user decides the transaction and the process flow.

Example.

u2022 SC type A will be process by a purchaser. (Transaction ZBBPSC01A)

u2022 SC type B will be processed automatically as PO. So the vendor must be mandatory. (Transaction ZBBPSC01B)

All lines must be A or B, because all lines make reference to the same purchasing process. And not all users are authorized for all transactions.

We created the new transactions (SE93), we created the new service (SICF), we created the internet services (SE80) and we published, and finally we created a new role with our new transaction (PFCG).

Now when we run the new transaction in web access, the system shows us a pop up with the next message :u201D Error in system; shopping cart cannot be processed furtheru201D

Any suggestion?

Is it a good idea to create new transactions?

Thanks and regards.

Raúl.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Raul,

This problem seems to come from function module BBP_SC_UI_SCENARIO_GET. Here based on SY-TCODE the scenario is exported.

If you see this FM, all standard SY-TCODEs are hard-coded. As yours is a custom Z-tcode it fails to find the scenario.

One way is to do an implicit enhancement to this FM at the end of this function module and send back the scenario. Atleast you can first verify by putting an external break-point in this function and manually change the EV_SC_SCENARIO while debugging to verify this.

Rgds,

Prasanna

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Instead of copying the standard transactions and making things more complex,i would advise you to control all the processes using authorisations.

To hide certain screen elements based on the z field in SC,you can simply use the BADI BBP_UI_CONTROL_BADI.

Regarding authorizations,you can create Z roles and assign the transaction BBPSC01 to only specific users.Also you can use the badi BBP_DOC_CHECK_BADI to check the values of certain fields /make certain fields mandatory to be filled during the process.

Creating copy of standard transactions would require thorugh study of the std transactions/flow of actions and would be time consuming too!

BR,

Disha.