Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ISP_KNVV_UPDATE

Former Member
0 Likes
478

hi Experts

I am using ISP_KNVV_UPDATE function module to update price group of KNVV table by taking flat file data from user and its successfully updating it, but I want to replicate it to CRM too, but the changes in price group are not reflected in CRM.

SELECT * FROM KNVV INTO TABLE IT_KNVV FOR ALL ENTRIES IN IT_UPLOAD

WHERE KUNNR = IT_UPLOAD-KUNNR.

LOOP AT IT_KNVV INTO WA_KNVV.

READ TABLE IT_UPLOAD INTO WA_UPLOAD WITH KEY KUNNR = WA_KNVV-KUNNR.

IF SY-SUBRC = 0.

WA_KNVV-KONDA = WA_UPLOAD-KONDA.

CALL FUNCTION 'ISP_KNVV_UPDATE'

EXPORTING

KNVV_IN = WA_KNVV.

COMMIT WORK.

ENDIF.

ENDLOOP.

1 REPLY 1
Read only

Former Member
0 Likes
412

Hi Paaavan,

Try to pass the following datas also to the IMPORT parameter of the function module.

WAERS
KURST
PLTYP

Also call the function module in UPDATE TASK

call function 'ISP_KNVV_UPDATE' in update task

Regards

HM