on 2021 Jan 04 9:48 PM
HI All
Can you pl assist on how i could update SRM PO text via Function module as I need to batch update a couple of POs
This includes Note to Supplier and internal note field
I tried with FM BBP_PDLTX_UPDATE as per the input value you see below it seems to execute successfully but does not update the PO
Regards
Vinita
Request clarification before answering.
I used BBP_PROCDOC_UPDATE to update the header text \
Most of the other FM in SRM seem to be not working ..
Adding this as the answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vinita,
i guess there is a missing COMMIT WORK.
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Laurent
Glad you replied I was not able to tag you thanks so much for your help
Here is the code which I used and it has a commit but seems like this FM does not work?
Can you try from your end and see if it works for you
or if you could confirm issues in my code?
lv_text = 'This is a test text'.
DATA : lt_ltxt TYPE STANDARD TABLE OF bbp_pds_longtext,
lv_temp TYPE string.
FIELD-SYMBOLS <fs_ltxt> TYPE bbp_pds_longtext .
CALL FUNCTION 'BBP_PDLTX_GETDETAIL'
EXPORTING
i_p_guid = p_guid
* IV_KIND =
* IV_VERSION_TYPE =
TABLES
e_ltxt = lt_ltxt.
DATA: lv_true TYPE xfeld.
lv_true = abap_true.
READ TABLE lt_ltxt ASSIGNING <fs_ltxt> WITH KEY tdid = 'NOTE'.
IF sy-subrc EQ 0 AND <fs_ltxt>-tdline IS NOT INITIAL.
CONCATENATE lv_text <fs_ltxt>-tdline INTO <fs_ltxt>-tdline SEPARATED BY '#'.
ENDIF.
CALL FUNCTION 'BBP_PDLTX_UPDATE'
EXPORTING
i_p_guid = p_guid
TABLES
i_ltxt = lt_ltxt
CHANGING
e_changed = lv_true.
WAIT UP TO 5 SECONDS.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
.
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.