03-03-2009 8:29 PM
Hi ,
I am working on a utilities project.
I want to create a contract account document while the invoice is created and should be included in the same invoice.
We have event R402 to create the document and include in same invoice. Can anyone please demonstrate the use of this event with example so as to how i can create a document of type donation (Main Transaction 0100, Sub Transaction 0235, Document Type DO) in event R402.
Regards,
Arun Devidas
03-26-2009 5:35 PM
The event has been handlded. The issue was with the GL account config which was corrected annd thus the problem got solved.
03-27-2009 10:37 AM
Hello
do the follwing
Append you Data
APPEND wa_fkkopk TO wa_vkk_doc_r402-n_fkkopk.
Add the Data in the export table
PERFORM update_vkk_doc_id_r402 TABLES t_vkk_doc_id
USING co_vkkdoc_main ( VALUE 'A')
wa_vkk_doc_r402. ( DATA: WA_VKK_DOC_R402 TYPEISU21_VKK_DOC_R402.
Coding
FORM READ_VKK_DOC_R402
TABLES
XT_VKK_DOC_ID_R402 TYPE ISU21_T_VKK_DOC_ID_R402
USING
X_DOC_ID TYPE ISU21_VKK_DOC_ID_R402-ID
X_BELNR TYPE ISU21_VKK_DOC_ID-TMP_BELNR
Y_VKK_DOC TYPE ISU21_VKK_DOC_R402.
DATA: H_VKK_DOC_ID_R402 TYPE ISU21_VKK_DOC_ID_R402.
READ TABLE XT_VKK_DOC_ID_R402
INTO H_VKK_DOC_ID_R402 WITH KEY ID = X_DOC_ID
TMP_BELNR = X_BELNR.
IF SY-SUBRC = 0.
Y_VKK_DOC = H_VKK_DOC_ID_R402-VKK_DOC_R402.
ELSE.
CLEAR Y_VKK_DOC.
ENDIF.
That all