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

CMD_EI_API Maintain Bapi KNVD Table ( Customer Master )

Former Member
0 Likes
1,926

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?

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
1,267

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

5 REPLIES 5
Read only

naimesh_patel
Active Contributor
0 Likes
1,268

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

Read only

0 Likes
1,267

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.

Read only

0 Likes
1,267

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

Read only

0 Likes
1,267

Yes i think the same and will create one. Thanks a lot for your help.

Regards,

Blaser Cedric

Read only

0 Likes
1,267

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.