Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

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

    This should have posted in ABAP forum.

    thanks

    G. Lakshmipathi

    Add a comment
    10|10000 characters needed characters exceeded

  • 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.