‎2015 Jul 01 3:31 PM
Hi
I created a report to create customer master data with method maintain_bapi form cmd_ei_api.
My problem is that i can't fill KNVD table with this Method. When i go in XD03 to look a fresh created customer under sales aera data in Documents the message No output created appears.
Did anyone know how to fill KNVD tabel with maintain_bapi?
‎2015 Jul 01 4:08 PM
Looks like KNVD would be populated automatically based on the configuration for Account group and Output determination procedure.
Check the method CMD_EI_API_CHECK=>CREATE_KNVD_CONTENT. The comment in the logic says like this:
*----------------------------------------------------------------------* In table 077D will be checked, if for account group of customer
* a output determination procedure is provided. If yes, all possible
* conditions from table 683S will be inserted in table LV_KNVD
* with output quantity '1' and KNA1 language. After that, the proposals
* for message transmission medium and dispatch time are taken over from
* table 685B in table LV_KNVD.
*----------------------------------------------------------------------
This method is being called from the method CMD_EI_API=>COMPLETE_AND_CHECK.
Regards,
Naimesh Patel
‎2015 Jul 01 4:08 PM
Looks like KNVD would be populated automatically based on the configuration for Account group and Output determination procedure.
Check the method CMD_EI_API_CHECK=>CREATE_KNVD_CONTENT. The comment in the logic says like this:
*----------------------------------------------------------------------* In table 077D will be checked, if for account group of customer
* a output determination procedure is provided. If yes, all possible
* conditions from table 683S will be inserted in table LV_KNVD
* with output quantity '1' and KNA1 language. After that, the proposals
* for message transmission medium and dispatch time are taken over from
* table 685B in table LV_KNVD.
*----------------------------------------------------------------------
This method is being called from the method CMD_EI_API=>COMPLETE_AND_CHECK.
Regards,
Naimesh Patel
‎2015 Jul 02 8:12 AM
Hi thanks for your answer
But now there's a new problem the Method CREATE_KNVD_CONTENT don't get called because lv_tcode is always empty. A importing parameter of COMPLETE_AND_CHECK is iv_tcode that has the value XD01 when i debugg but for create_knvd_content to start it need lv_tcode to be XD01 also but it don't get a value in code.
* Create KNVD content
IF lv_tcode = gc_tcode_create.
CALL METHOD cmd_ei_api_check=>create_knvd_content
EXPORTING
is_kna1_new = is_kna1_new
is_knvv_new = ls_knvv_new.
ENDIF.
‎2015 Jul 02 2:42 PM
Bummer .. Another bug from SAP ..
I think you should raise an OSS message to SAP. It should be using the iv_tcode, not lv_tcode.
IF iv_tcode = gc_tcode_create. "<< IV_TCODE
CALL METHOD cmd_ei_api_check=>create_knvd_content
EXPORTING
is_kna1_new = is_kna1_new
is_knvv_new = ls_knvv_new.
ENDIF.
Regards,
Naimesh Patel
‎2015 Jul 02 2:55 PM
Yes i think the same and will create one. Thanks a lot for your help.
Regards,
Blaser Cedric
‎2016 Feb 05 11:39 PM
Cedric,
Please apply the notes 1451150 and 2258137. It will resolve the issue. I know I am responding very late for this post, but other might get benefited out of this 🙂
Regards,
Ameer.