cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with CRM_ISA_BASKET_ADDTEXT

gaurab_banerji
Active Participant
0 Kudos

There is a requirement in which I need to update header texts of sales orders with some data from a Z table based on the ship to party being used in the order.

I know that there are 2 function modules

CRM_ISA_BASKET_GETTEXT

CRM_ISA_BASKET_ADDTEXT

Though I am easily able to use the CRM_ISA_BASKET_GETTEXT FM easily to read the texts, I am unable to constructively use the FM CRM_ISA_BASKET_ADDTEXT.

Can you give me an idea on how to use this FM to update the texts for Standard header?

Accepted Solutions (1)

Accepted Solutions (1)

jorge_ocamposbenito
Contributor
0 Kudos

Hi Gaurab,

Try to add, after CRM_ISA_BASKET_ADDTEXT the FM CRM_ISA_BASKET_SAVE.

Best regards.

gaurab_banerji
Active Participant
0 Kudos

do i have to do this in BAdI CRM_ISA_BASKRT_HEAD in the method GETHEAD_GET_DATA or can be done without the badi implementation?

jorge_ocamposbenito
Contributor
0 Kudos

Hi Gaurab,

Depends of your requierement, you can do that outside BADI or using BADI. Where you want.

Please mark as correct if helps.

Best regards.

gaurab_banerji
Active Participant
0 Kudos

i want to add some text into the "header note" for any order created using crmd_order transaction.

I already have the BADI ORDER_SAVE implemented which i plan to use. so I tried calling the FM CRM_ISA_BASKET_ADDTEXT passing the basket guid (header guid) item_guid (same guid) and text id 0001 and in the text table | * | hello world |

no messages were returned which should mean that CRM_ORDER_MAINTAIN worked ok. but nothing is updated as such.

The read FM works fine.

i tried calling bapi_transaction_commit but still no help.

jorge_ocamposbenito
Contributor
0 Kudos

Hi Gaurab,

Try to use CRM_ORDER_SAVE FM after modify the order.

Best regards.

gaurab_banerji
Active Participant
0 Kudos

its done finally...

i used 'CRM_TEXT_MAINTAIN_OW' to add the text within implementation of ORDER_SAVE badi under method check_before_save. the basket didnt work for me...

Answers (0)