cancel
Showing results for 
Search instead for 
Did you mean: 

Pass SC numbber to Tracking number

Former Member
0 Kudos

Hi All,

I have implemented the BADI: ZBBP_CREATE_BE_RQ_NEW, and was wondering what code I need to put in method FILL_RQ_INTERFACE so that shopping cart number can be transferred to the back-end PR tracking number field- BEDNR ??,

Thanks.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Imtiaz,

I am not sure what is wrong in putting code. I think there is no harm in helping unless it takes lot of space.

Regards

Amit

Former Member
0 Kudos

Hi. Missed a line of code out of there before, sorry.

You need:

et_item = it_item.

at the end of your code to transfer the import parameters to the export.

Regards,

Dave.

imthiaz_ahmed
Active Contributor
0 Kudos

Hi all. I'll request all to stop posting coding here. We can show the direction not make him walk all the way. Let him think and do. This forum is being used incorrectly.

Former Member
0 Kudos

Thanks, I didn't use any code from this thread but I resolved this using by my own code, however I am awarding points to david for his feedback, it keeps me motivated

Thanks

Former Member
0 Kudos

Hi. I would not normally go as far as to put any code in, but the question clearly asked "...was wondering what code I need..." so I tried to help accordingly.

Regards,

Dave.

Former Member
0 Kudos

Hi David, i will try your solution, when i implement the badi BBP_DOC_CHANGE_BADI, i need to put a filter on BBP_SEARCH_OBJTYP, which filters i need to add?

My requirement is on ECC Purcharse Order can see the shopping cart number , and with this tracking number looks great.

I'm abap beginner.

Thanks.

Former Member
0 Kudos

I'n not sure if only BUS2201 or BUS2121 or both

thanks

Former Member
0 Kudos

Hi. It might be easier to populate tracking number in the SRM shopping cart, then it is passed automatically to the back end.

Use the BBP_DOC_CHANGE_BADI for this, method BBP_SC_CHANGE.

Then something like this, replace {work area} with a variable of your own choice.

DATA: {work area} TYPE bbp_pds_sc_item_icu.

LOOP AT it_item INTO {work area}.

Selecr single object_id INTO

{work area}-be_tracking_no FROM

crmd_orderadm_h WHERE

guid = is_header-guid.

MODIFY it_item FROM {work area} TRANSPORTING be_tracking_no.

ENDLOOP.

Regards,

Dave.

Former Member
0 Kudos

Hi,

You are correct, you need to pass the value through the BADI, let me know if you need any additional information.

Thank you