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

Passing values in bapi_document_create2

Former Member
0 Likes
1,711

  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
Read only

former_member585060
Active Contributor
0 Likes
1,412

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
Read only

Former Member
0 Likes
1,412

Hi Shilpa

You have to use below FM to create Clasification

CLVF_VB_INSERT_CLASSIFICATION or BAPI_OBJCL_CREATE.

Thanks,

Chandra

Read only

0 Likes
1,412

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".

Read only

former_member585060
Active Contributor
0 Likes
1,413

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

Read only

0 Likes
1,412

Thanks for all the help.