cancel
Showing results for 
Search instead for 
Did you mean: 

J1iin User Exit after Save (urg)

Former Member
0 Kudos

Hi All,

Is there any user exit or badi after save of J1iin where i can get the excise invoice No. which is being saved.

Thanks & Rgds

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

MJ1IINF01- FORM read_exc_ref_details.

*----


***INCLUDE MJ1IIF01 .

*----


&----


*& Form READ_EXC_REF_DETAILS

&----


  • Read the excise refrence documennt details *

----


here EXCITM * excise item details for the excise invoice

vbeln_b LIKE vbrp-vbeln, "pro forma no,

posnr_b LIKE vbrp-posnr, "pro forma item

vgbel LIKE vbrp-vgbel, "delivery

vgpos LIKE vbrp-vgpos, "delivery item

aubel like vbrp-aubel,

aupos like vbrp-aupos,

xaubel like vbrp-aubel,

xaupos like vbrp-aupos,

matnr LIKE vbrp-matnr, "material no.

arktx LIKE vbrp-arktx, "material desc.

fkimg LIKE vbrp-fkimg, "invoice quantity

meins LIKE vbrp-meins, "unit

werks LIKE vbrp-werks, "plant

lgort LIKE vbrp-lgort, "storage location

charg LIKE vbrp-charg, "batch

excbase LIKE komv-kawrt, "excise base

kursk LIKE vbrp-kursk, "exchange rate

bed LIKE j_1iexchdr-exbed,

aed LIKE j_1iexchdr-exaed,

Regards,

Former Member
0 Kudos

Hi

Please check include MJ1IINF01. There are enhancement point available in MJ1IINF01. See the line no 2058 where actually system insert data into J_1IEXHDR table, where you can find whole details of excise invoice and excise invoice no also.

Edited by: Dhiraj Bhaskar on Mar 18, 2011 11:17 AM

Former Member
0 Kudos

Hi,

Thanks again

The issue is here i may get exc inv number after commit but i want other detials as well like ref doc, date etc..

which i am not getting here.

The above details i am takin from exc inv user exit "bef Save" but in this i dont get the exc inv no.

Rgds.,

Former Member
0 Kudos

Update table J_1IEXCHDR *

----


FORM save_excise_header.

j_1iexchdr-docno = idata-docno.

j_1iexchdr-docyr = idata-exyear.

j_1iexchdr-exnum = idata-excnum.

INSERT j_1iexchdr.

IF sy-subrc <> 0.

MESSAGE a308(8i) WITH 'J_1IEXCHDR' .

ENDIF.

ENDFORM. " SAVE_EXCISE_HEADER

This is the spot where enhancement point is available in inclued MJ1IINF01. where u can get data in ITAB. where u can get the reference no, excise invoice no as well as other details which are stored in J_1IEXCHDR table.

Former Member
0 Kudos

Hi,

Check User exit J_1I7_USEREXIT_EXCISE_BEF_SAVE

regards,

Siraj

Former Member
0 Kudos

Hi,

I know this exit.

My query is about exit "after Save" coz in this exit i dont get the Excise Inv No.

Rgds,