on 07-19-2007 6:43 AM
Hi experts,
I created a copy from IDOC_INPUT_INVOIC_MRM(function module to process the inbound idoc with idoc type INVOIC01) to Z_IDOC_INPUT_INVOIC_MRM .
I used 2 transactions:
>BD51 - Maintain Attributes
>WE57 - Assign IDoc Type and Message Type
for this new function module.
Next step, I tested function module Z_IDOC_INPUT_INVOIC_MRM by use the transaction we19. The invoice was not generated the same of testing with function module IDOC_INPUT_INVOIC_MRM.
Anyone can tell me why?
(2 functions module is the same source code)
Thanks,
Gy
what was the error? check in we02 and post on the error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank for your help.
The error was generated cause the G/L account number is wrong(0000580100 not 580100).
An other way, how i can create a billing document after the invoice was generated?
Source code to generate invoice:
*append G/L account to internal table tco
lw_tco-KOKRS = 'xxxxx'.
lw_tco-KOSTL = 'xxxxx'.
lw_tco-SAKNR = 'xxxxxxxx' .
lw_tco-BUKRS = 'xxxx'.
lw_tco-SHKZG = 'S'.
append lw_tco to tco.
----- Erzeugung des Rechnungsbelegs, IDOC-Status fortschreiben -
IF mrm_subrc = 0.
PERFORM mrm_invoice_create TABLES tfrseg " Exporting
tco " Exporting
tma " Exporting
idoc_status " Importing
USING mrm_rbkpv
mrm_idoc_contrl
mrm_poskorr
f_zahlbed
CHANGING mrm_belnr
mrm_gjahr
mrm_subrc.
ENDIF.
*Add code to generate billing document
.........???
Thanks,
Gy
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.