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: 

Need help to "call transaction" Display Excise Invoice using J1IIN or J1I7

Former Member
0 Kudos
91

I want to Call transaction to J1IIN or J1I7 to display Excise Invoice:

It is useful to create HotSpots in ALV lists or Grids to call transactions. I have done this for many transactions like ME23N VL03N VT03 VF03 FB03 VI03 with code like

form f_process_ME23N Using P_EBELN like EKBE-EBELN.

SET PARAMETER ID 'BES' FIELD P_EBELN.

call transaction 'ME23N' AND SKIP FIRST SCREEN.

endform.

form f_process_VL03N Using P_XBLNR like EKBE-XBLNR.

SET PARAMETER ID 'VL' FIELD P_XBLNR.

call transaction 'VL03N' AND SKIP FIRST SCREEN.

ndform.

But for J1IIN I wrote

form f_process_J1IIN Using P_EXNUM like J_1IEXCHDR-EXNUM

P_EXYEAR like J_1IEXCHDR-EXYEAR

P_SRGRP like J_1IEXCHDR-SRGRP.

SET PARAMETER ID 'J2F' FIELD P_EXNUM.

SET PARAMETER ID 'GJR' FIELD P_EXYEAR.

SET PARAMETER ID 'J2H' FIELD P_SRGRP.

call transaction 'J1IIN'.

endform. " f_process_J1IIN

J1IIN DIsplay(F7) would be very useful for PCBL users to drill down from hotspot b<b>ut after struggling for 2 days have no solution</b>. We do not mind pressing the first F7 but even giving values in J_1IEXCHDR table seen with SE16 I could not get J1IIN to display - even directly without BDC.

I think EXNUM EXYEAR & SRGRP are needed as mandatory. In the actual data however the field SRGRP is often NULL. This has confused me even more.

Kindly share a solution to display Excise Invoice from any user ABAP program.

We need a solution which should be as smooth as calling VL03N or ME23N.

Regards & Best Wishes

-jnc

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
28

Have you tried doing a partial BDC. I mean, do the recording of the transaction up to the point to where you want to display the data to the user. Then when calling the BDC, use mode 'E'. This will stop the BDC at its last instruction and turn control to the user.

Regards,

Rich Heilman

Former Member
0 Kudos
28

I hav exactly same requirement, any light on the sol?? I have seen demo_program_submit_rep1 program but this doesnt give any answer on how to populate okcode