Skip to Content
author's profile photo
Former Member

J1IIN Create Factory invoice thr BDC-UserExit J_1I7_USEREXIT_DUTY_IN_EXIT

Hello All,

Using BDC I am trying to create a factory exicse invoice as below:

    PERFORM bdc_dynpro      USING 'SAPMJ1IIN' '1000'.
    PERFORM bdc_field       USING 'BDC_OKCODE' '=ECRT'.
    PERFORM bdc_dynpro      USING 'SAPMJ1IIN' '0150'.
    PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
    PERFORM bdc_field       USING 'BKPF-BUDAT' l_sy_date.
    PERFORM bdc_dynpro      USING 'SAPMJ1IIN' '0400'.
    PERFORM bdc_field       USING 'BDC_OKCODE'  '=SAVE'.
* Call transaction for factory exise invoice creation
    CALL TRANSACTION 'J1IIN' USING t_bdcdata
                             MODE g_mode
                             MESSAGES INTO t_bdcmsgcoll.

Now, My Requirement is : To use the user exit J_1I7_USEREXIT_DUTY_IN_EXPORT

to redetermine the exicse type based on some criteria.

I am calling this BDC lines of code in a funtion module. Where should I include this user exit.?

Do I need to call this user exit explcitly in my Funtion module or chnaging this user exit alone will solve my problem?

Please help me on this.

Regards,

Vijaya

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on May 05, 2011 at 04:57 AM

    This should have posted in ABAP forum.

    thanks

    G. Lakshmipathi

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 06, 2011 at 03:23 AM

    Hi ,

    As Mr.Lakshmipathi told please post in ABAP form . I have a little doubt.

    To use the user exit J_1I7_USEREXIT_DUTY_IN_EXPORT to redetermine the exicse type based on some criteria.Please explain some more.Why user exit on BDC?

    Regards,

    Madhu.

    Add comment
    10|10000 characters needed characters exceeded