cancel
Showing results for 
Search instead for 
Did you mean: 

Change shopping cart status to reject when older than certain period

Former Member
0 Kudos

Hi Guru's,

I'm new to this environment.

Please help me with advice and sample code for the following.

I need to check if shopping cart is open for more than 20 days then change status to reject, daily background job.

Then need to inform user of new status via email.

Which is the correct FM, s to use.

Many thanks

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

<b>Here are the steps -></b>

1. Create a Customer Implementation of BBP_DOC_CHANGE_BADI for Object (filter) type - BUS2121 using SE18 Transaction.

In the coding, you can set you condition ( >= 20 days then change status to reject)

2. Using either of the standard Function modules, you can create a Z program to send emails.

<b>Use the following Standard SAP Function modules -></b>

SO_OBJECT_PREPARE_FOR_SEND

SO_OBJECT_SEND

SO_DOCUMENT_SEND_API1

SO_NEW_DOCUMENT_ATT_SEND_API1

SO_NEW_DOCUMENT_SEND_API1

<u>Other related links -></u>

Hope this will help.

Regards

- Atul

Former Member
0 Kudos

Many thanks Atul.

The email should be fine.

Do u have an example how to create customer imp. of badi

and how its applied to change sc status.

Thanks for your help thus far.

DBR.

Former Member
0 Kudos

Hi,

You can goto SE18 and enter the BADI name.Then goto Implementation in the MENU and say create.There you can create your Z implemntation for the BADI.

In the Method BBP_SC_CHANGE,you can write your piece of code.Also there is a std FM to change the Status of docuemnts(i.e. SC,PO)..Currently I am away from system so cant tell you the exact name...

You can search in SE37 with the criteria ."BBPSTATUS...

HTH

BR,

Disha.

Pls reward full points for useful answers.

Former Member
0 Kudos

Hi,

Try using the FM's :

BBP_PD_SC_STATUS_CHANGE

BBP_PD_SC_STATUS_CHANGE_DIRECT

BR,

Disha.

Pls reward points for useful answers.

Former Member
0 Kudos

Thanks for your help Disha,

Sorted

Daniel

Answers (0)