Application Development 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: 

Passing values in bapi_document_create2

Former Member
0 Kudos

  Hi,

I am creating DIR with BAPI_document_create2. When I am creating with CV01N transaction. I need to pass two extra values under the tab

technology restricted for export.

                                                        

TECHNOLOGY CLASSIFFICATION  DECONTROLLED

US CONTENT                                    YES

can anyone suggest where I have to pass these values in my BAPI. It contains data element as ATWRT. I tried a lot, but could not get it.

Thanks.

1 ACCEPTED SOLUTION

former_member585060
Active Contributor
0 Kudos

Hi,

     In Bapi 'BAPI_DOCUMENT_CREATE2' you have tables parameter 'CHARACTERISTICVALUES' to create characteristics. Fill the table to create the characteristics values.

1) First create a Document in CV01N transaction along with those Classification values.

2) Goto SE37, give Bapi 'BAPI_DOCUMENT_GETDETAIL2', pass the Document details of above created Document. Set the the Exporting parameter GETCLASSIFICATION = 'X', so that it will get the classification values. When this BAPI is executed, you will have the classification values populated in Table CHARACTERISTICVALUES. Just verify the table content.

3) When creating Document with Bapi 'BAPI_DOCUMENT_CREATE2', fill the table 'CHARACTERISTICVALUES' similar to the above table values. So the the Document created with this Bapi will have the required characteristic values populated.

Thanks & Regards

Bala Krishna

4 REPLIES 4

Former Member
0 Kudos

Hi Shilpa

You have to use below FM to create Clasification

CLVF_VB_INSERT_CLASSIFICATION or BAPI_OBJCL_CREATE.

Thanks,

Chandra

0 Kudos

How can I create the clssofication for the same document number.

When I am creating a document with bapi_document_create2, where I can enter these two values .i.e "decontrolled" and "yes".

former_member585060
Active Contributor
0 Kudos

Hi,

     In Bapi 'BAPI_DOCUMENT_CREATE2' you have tables parameter 'CHARACTERISTICVALUES' to create characteristics. Fill the table to create the characteristics values.

1) First create a Document in CV01N transaction along with those Classification values.

2) Goto SE37, give Bapi 'BAPI_DOCUMENT_GETDETAIL2', pass the Document details of above created Document. Set the the Exporting parameter GETCLASSIFICATION = 'X', so that it will get the classification values. When this BAPI is executed, you will have the classification values populated in Table CHARACTERISTICVALUES. Just verify the table content.

3) When creating Document with Bapi 'BAPI_DOCUMENT_CREATE2', fill the table 'CHARACTERISTICVALUES' similar to the above table values. So the the Document created with this Bapi will have the required characteristic values populated.

Thanks & Regards

Bala Krishna

0 Kudos

Thanks for all the help.