cancel
Showing results for 
Search instead for 
Did you mean: 

How to change default smartform triggered while printing for shopping cart

Former Member
0 Kudos

Hi Experts,

I am having a requirement where in the User wants to modify some of the contents appearing in the printout (Actually the form layout) which is coming into picture, on the ITS Web page after the Shopping cart is ordered.

-> Which FORM is invoked here ? Is it BBP_SC or BBP_PO ? I guess it's BBP_SC, right ?

-> Which BADI to use here to change the smartform ? Any sample code as well.

-> Is there any configuration settings required as well. ? Please explain with details.

Please provide your comments.

Points for sure for precise answers.

Regards

- Atul

Accepted Solutions (0)

Answers (8)

Answers (8)

manukapur
Active Participant
0 Kudos

If you have solved the problem, please post the solution. I am stuck with the same issue and all pointers lead to this unanswered post.

Former Member
0 Kudos

HI Atul ,

Can you please help me , i am working on the same scenario i want to change default smartform to custom adobe form .

Can u please guide me

please reply if any one could help

Thanks

sonam

Former Member
0 Kudos

Thanks a lot. Problem solved long time back. )

Cheers

- Atul

Former Member
0 Kudos

Hi Atul,

Would you mind sharing the solution you implemented for this? It would be greatly appreciated.

Thanks!

draide

Former Member
0 Kudos

SmartForm BBP_SC is hardcoded in subroutine sc_print

so all the BAdIs in the world are not going to change the code ...!

we just replaced the content of the BBP_SC with what we needed, it works fine!

download the SF content in case you need to upgrade

Former Member
0 Kudos

Peter:

I can see that this thread is a bit old; Nevertheless, let me attempt to give my answer.

We did create a custom smart form and it was triggered when user clicked the print button. BBP_SC wasnt triggered.

Here is the info:

Version: SRM 4.0

BADI: BBP_CHANGE_SF_SC

Impl: ZBBP_CHANGE_SF_SC

Method name: CHANGE_SMARTFORM

Code:

method IF_EX_BBP_CHANGE_SF_SC~CHANGE_SMARTFORM.

SMARTFORM = 'ZZBBP_SC'.

endmethod.

Where ZZBBP_SC is a copy of BBP_SC and then customized!

-Seyed

Former Member
0 Kudos

Hi -Seyed,

Glad it worked for you! We are on SRM 5.x, the standard SForm is truly hardcoded in sc_print ... you can chnage the HTML templates to call a custom function as well

Sometimes the follow on calls check internally for a BAdI implementation, and this might be the case here ...

since the original poster indicated that BBP_CHANGE_SF_SC did not work for him, we did not look further into it, we just zapped the standard - it's no big deal in my world ... but I BELIEVE you, man, I'll look into the standard call when I get back to work!

points to you for sure! I wonder how Atul [the original poster] made out ...?

Former Member
0 Kudos

Hi

My question has not been answered yet.

Any opinions. Suitable points are for sure.

Regards

- Atul

Former Member
0 Kudos

Hi

My question has not been answered yet.

Any other expert opinions are welcome.

Points for sure.

Regards

- Atul

Ramki
Active Contributor
0 Kudos

Hi Atul

Is this in SRM50 ?

Pl try BADI BBP_OUTPUT_CHANGE_SF.

I know you can figure out what shd be the code.

Best regards

Ramki

Former Member
0 Kudos

Hi

<b>I am having SRM 5.0, But when i implemented the BADI (Please see the earlier posts. The details are already pasted in the ealier posts)</b>

<u>The system is not trigerring any of the BADI Implementations

BBP_CHANGE_SF_SC

BBP_OUTPUT_CHANGE_SF</u>

How to go ahead in this case ?

Points for sure. )

Regards

- Atul

former_member195032
Active Contributor
0 Kudos

Hi Atul,

We did it for PO....Our requirement was to put logo in smartform and pull some backend specific data in PO output form.

Use Copy and copy smartform BBP_PO into some ZBBP_PO.

Make changes in smartform.

In spro

SRM-SRM server-Cross Application basic Settings->Set output Actions and output format->Define Action for output document.

Select Action profile as BBP_PD_PO

Click on processing type

choose smart form print or fax or e-mail as per your requirement and change

PO name as ZBBP_PO.

We put code to fetch logo from by writing code in smartform.

Maintained logo using SE78 transaction.

So you can look for solution in same way.

Regards,Nishant

Former Member
0 Kudos

Hi

Thanks for the reply.

But here my requirement is with the Print Preview appearing at ITS Web page for the Shopping cart scenario.

Any further precise suggestions are awaited from your end.

Regards

- Atul

yann_bouillut
Active Contributor
0 Kudos

Hi,

BBP_SC

Shopping cart layout can be changed using BADI BBP_CHANGE_SF_SC

Go to BADI -> Document Output -> Output Shopping Cart with Customer Form

Try BADI implement method -> CHANGE_SMARTFORM

and customize your own output for the shopping cart print.

Kind regards,

Yann

Former Member
0 Kudos

Hi

Thanks a lot, Yann.

Yes, I Know this BADI and before posting my query, I have already created the Implementation of this BADI - BBP_CHANGE_SF_SC.

Also for the Standard Smartform - BBP_SC, I have created a copy of the same and named it as ZBBP_SC.

But the Smartform is never triggered in the ITS Web Page. The BADI implemenation is already activated.

<u>Here is the code of the Implementation</u>

If IV_BUS = 'BUS2121'.
  smartform = 'ZBBP_SC'.
Endif.

Incase you this, this code is not OK, Pls advice.

Do I need to make any other configuartion settings as well.

<b>Experts comments awaited urgently.</b>

<b>Points will be surely given, once the problem is solved. ) </b>

Regards

- Atul