Enhancement in XD01/02 Transaction

pts.
Tags:
Development
it exists a user-exit or BAdi called after saving data in transaction XD01/02? Thanks.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,
yes, there is exit SAPMF02D.
You must create a project for this exit and activate it.
Then you can insert pieces of source code in the EXIT_SAPMF02D_001 function.

This function works when you save customer data.

Or there are some Business event transaction (FIBF) that you could use:

00001310 CUSTOMER MASTER DATA: GUI Callup
00001320 CUSTOMER MASTER DATA: Save
00001321 CUSTOMER MASTER DATA: Save with data transfer
00001330 CUSTOMER MASTER DATA: Key texts
00001340 CUSTOMER MASTER DATA: Final checks
00001350 CUSTOMER MASTER DATA: Individual duplication check
00001360 CUSTOMER MASTER DATA: Auth. check: Acct group

to see them you can call BERE transaction.

Bye
Lara

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Hope62it
    hi Lara, i know exit SAPMF02D, but i can't use this exit because my customizing is setting to use "automatic number range" when create new customer (trnx XD01) and in this case field I_KNVV-KUNNR is empty. I try to use Business event transaction, as you suggest. Thanks. Franco.
    0 pointsBadges:
    report
  • ITLara
    Hi Franco, I think that Business Transaction Event will be able to solve your problems!!! For any further question, don't hesitate to write me! Bye Lara
    0 pointsBadges:
    report
  • Hope62it
    Hi Lara, thanks for your suggest.I have solved my problem with BTE 1320. By. Franco.
    0 pointsBadges:
    report
  • Chilamkar
    user exit
    20 pointsBadges:
    report
  • Chilamkar
    actually i have tried uisng this exit.... but its not working... there is no changing parameter. I have written this code... the prefix and sequence number is generated and collected in NUMBER but still customer is created with sap internal range. please verify... and let me know as early as possible data: v_regio type kna1-regio, v_counc type kna1-counc, v_vtweg type knvv-vtweg, v_kunnr type kna1-kunnr. data: WA_KNAS TYPE KNAS. DATA: RC LIKE INRI-RETURNCODE, NUMBER(10) TYPE C, V_NUM(5) TYPE C, V_NUMBER(10) TYPE C, v_reg(2) type c, V_DIV TYPE C. select single bland from t005s into v_regio where land1 = i_kna1-land1. clear v_reg. case v_regio. when '01'. v_reg = 'AP'. when '10'. v_reg = 'K'. endcase. select single vtweg from tvtw into v_vtweg where vtweg = i_knvv-vtweg. case v_vtweg. when '01'. v_div = 'D'. when '02'. v_div = 'T'. when '03'. v_div = 'N'. when '04'. v_div = 'Z'. WHEN '05'. V_DIV = 'G'. WHEN '06'. V_DIV = 'C'. WHEN '07'. V_DIV = 'S'. ENDCASE. v_counc = i_kna1-counc. concatenate v_reg v_counc v_DIV into v_kunnr. CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING NR_RANGE_NR = '01' OBJECT = 'DEBITOR' * QUANTITY = '1' * SUBOBJECT = ' ' * TOYEAR = '0000' * IGNORE_BUFFER = ' ' IMPORTING NUMBER = number * QUANTITY = * RETURNCODE = rc. EXCEPTIONS INTERVAL_NOT_FOUND = 1 NUMBER_RANGE_NOT_INTERN = 2 OBJECT_NOT_FOUND = 3 QUANTITY_IS_0 = 4 QUANTITY_IS_NOT_1 = 5 INTERVAL_OVERFLOW = 6 BUFFER_OVERFLOW = 7 OTHERS = 8 . IF SY-SUBRC <> 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. V_NUM = NUMBER+5(5). CONCATENATE V_KUNNR V_NUM INTO NUMBER. I_KNA1-KUNNR = NUMBER. WA_KNAS-KUNNR = i_kna1-kunnr. WA_KNAS-LAND1 = I_KNA1-LAND1. APPEND WA_KNAS TO T_KNAS.
    20 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following