Application Development and Automation 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: 
Read only

USER EXITS FOR VBAP.

Former Member
0 Likes
5,811

CAN ANYONE GIVE ME THE NAMES OF THE USER EXITS WHICH R RELATED TO THE TABLE VBAP......................I NEED THE LIST........???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,715

Hi

See the include MV45AFZZ, MV45AFZA, MV45AFZB

Max

15 REPLIES 15
Read only

Former Member
0 Likes
3,716

Hi

See the include MV45AFZZ, MV45AFZA, MV45AFZB

Max

Read only

Former Member
0 Likes
3,715

VBAP is related to SD module and normally MV45AFZZ is the user exit which is been used for SD related stuff...U have various subroutinues within theis user exit wherein u can insert ur appropriate code in the appropriate sub routinue.

Read only

Former Member
0 Likes
3,715

You can use include MV45AFZZ. Have a look at below link for information related to the exits in MV45AFZZ.

http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

Former Member
0 Likes
3,715

HI MAX..........I HAVE TO APPEND THREE COUSTOM FIELDS TO THE TABLE VBAP AND FIND A USER EXIT WHICH WOULD UPDATE THE DATA IN ALL THE RELATED STRUCTURES AND TABLE.......TELL ME HOW TO DO THAT??

Read only

0 Likes
3,715

Hi

In include MV45AFZZ there's the the form userexit_move_field_to_vbap, u can use this to move your additional fields.

Max

Read only

Former Member
0 Likes
3,715

WHERE DO I LOOK FOR THIS INCLUDE??

Read only

Former Member
0 Likes
3,715

I NEED TO USE ONLY EXITS NOT INCLUDES...............IS <b>SDVFX010</b> ANYWHERE RELATEDD TO THE VBAP TABLE...........PLEASE DO LET ME LKNOW.

THANKS.

Read only

Former Member
0 Likes
3,715

HELLO IS ANYBODY THERE?

Read only

Former Member
0 Likes
3,715

MARK CAN U TELL ME IN DETAIL AS TO HOW THE include MV45AFZZ WILL MEET MY REQUIREMENT???HOW WILL I IMPLEMENT THE LOGIC AND WATS THE FUTHER PROCEDURE.....................HOW TO MAKE THE INCLUDE WRITE ENABLED??

THANKS.

Read only

0 Likes
3,715

you just need to get access key for this object (your BASIS can provide) and modify the form userexit_move_field_to_vbap OR any other userexit_ as it really depends on when/where during order processing you know the values for your fields.

It may be in userexit_save_document_prepare which works before the document is saved and where you can loop at xvbap and populate your fields.

Read only

0 Likes
3,715

Hi

MV45AFZZ is std object so you need to get the access key from OSS if it has never changed before.

You have to do that by registering the object, but you have to have an account OSS.

If you don't have it, ask your basis to register the object.

So run se38, insert MV45AFZZ if the system show a popup asking the access key, it means you have to register it.

When you can changed it, search the form USEREXIT_MOVE_FIELD_TO_VBAP and insert the code you need, for example:

IF ......

MOVE XXXXX TO VBAP-<NEW FIELD>.

ENDIF

Max

Read only

Former Member
0 Likes
3,715

MY REQUIREMENT IS THAT AFTER I POPULATE THE VBAP TABLE WITH THE DATA,THE RELATED TABLES AND THE STRUCCTURES AND ALL RELATED PARTIES SHOULD GET POPULATED WITH THE RELEVENT DATA................HOW CAN THAT B ACHIEVED?

Read only

Former Member
0 Likes
3,715

hello people i am supposed to use only the function exits not the includes.please help.

Read only

Former Member
0 Likes
3,715

hi supriya,

u can use the below programs to findout the fileds exits existing

REPORT ZV_FIND_EXIT NO STANDARD PAGE HEADING.

TABLES : TSTC, TADIR, MODSAPT, MODACT, TRDIR, TFDIR, ENLFDIR.

TABLES : TSTCT.

DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.

DATA : FIELD1(30).

DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.

PARAMETERS : P_TCODE LIKE TSTC-TCODE OBLIGATORY.

SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.

IF SY-SUBRC EQ 0.

SELECT SINGLE * FROM TADIR WHERE PGMID = 'R3TR'

AND OBJECT = 'PROG'

AND OBJ_NAME = TSTC-PGMNA.

MOVE : TADIR-DEVCLASS TO V_DEVCLASS.

IF SY-SUBRC NE 0.

SELECT SINGLE * FROM TRDIR WHERE NAME = TSTC-PGMNA.

IF TRDIR-SUBC EQ 'F'.

SELECT SINGLE * FROM TFDIR WHERE PNAME = TSTC-PGMNA.

SELECT SINGLE * FROM ENLFDIR WHERE FUNCNAME =

TFDIR-FUNCNAME.

SELECT SINGLE * FROM TADIR WHERE PGMID = 'R3TR'

AND OBJECT = 'FUGR'

AND OBJ_NAME EQ ENLFDIR-AREA.

MOVE : TADIR-DEVCLASS TO V_DEVCLASS.

ENDIF.

ENDIF.

SELECT * FROM TADIR INTO TABLE JTAB

WHERE PGMID = 'R3TR'

AND OBJECT = 'SMOD'

AND DEVCLASS = V_DEVCLASS.

SELECT SINGLE * FROM TSTCT WHERE SPRSL EQ SY-LANGU AND

TCODE EQ P_TCODE.

FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.

WRITE:/(19) 'Transaction Code - ',

20(20) P_TCODE,

45(50) TSTCT-TTEXT.

SKIP.

IF NOT JTAB[] IS INITIAL.

WRITE:/(95) SY-ULINE.

FORMAT COLOR COL_HEADING INTENSIFIED ON.

WRITE:/1 SY-VLINE,

2 'Exit Name',

21 SY-VLINE ,

22 'Description',

95 SY-VLINE.

WRITE:/(95) SY-ULINE.

LOOP AT JTAB.

SELECT SINGLE * FROM MODSAPT

WHERE SPRSL = SY-LANGU AND

NAME = JTAB-OBJ_NAME.

FORMAT COLOR COL_NORMAL INTENSIFIED OFF.

WRITE:/1 SY-VLINE,

2 JTAB-OBJ_NAME HOTSPOT ON,

21 SY-VLINE ,

22 MODSAPT-MODTEXT,

95 SY-VLINE.

ENDLOOP.

WRITE:/(95) SY-ULINE.

DESCRIBE TABLE JTAB.

SKIP.

FORMAT COLOR COL_TOTAL INTENSIFIED ON.

WRITE:/ 'No of Exits:' , SY-TFILL.

ELSE.

FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

WRITE:/(95) 'No User Exit exists'.

ENDIF.

ELSE.

FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

WRITE:/(95) 'Transaction Code Does Not Exist'.

ENDIF.

AT LINE-SELECTION.

GET CURSOR FIELD FIELD1.

CHECK FIELD1(4) EQ 'JTAB'.

SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).

CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

*************************************************************

or

1. in se11, goto table MODSAP

View table contents

2. in Type field, enter 'E' (for function exit)

3. For that tcode, u should know the program name.

eg. SAPLLMOB

4. then type SAPLLMOB and execute

or

REPORT z34331_user_exit .

TABLES : tstc, "SAP Transaction Codes

tadir, "Directory of Repository Objects

modsapt, "SAP Enhancements - Short Texts

modact, "Modifications

trdir, "System table TRDIR

tfdir, "Function Module

enlfdir, "Additional Attributes for Function Modules

tstct. "Transaction Code Texts

DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.

DATA : field1(30).

DATA : v_devclass LIKE tadir-devclass.

SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP.

PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN END OF BLOCK a01.

START-OF-SELECTION.

  • Validate Transaction Code

SELECT SINGLE * FROM tstc

WHERE tcode EQ p_tcode.

  • Find Repository Objects for transaction code

IF sy-subrc EQ 0.

SELECT SINGLE * FROM tadir

WHERE pgmid = 'R3TR'

AND object = 'PROG'

AND obj_name = tstc-pgmna.

MOVE : tadir-devclass TO v_devclass.

IF sy-subrc NE 0.

SELECT SINGLE * FROM trdir

WHERE name = tstc-pgmna.

IF trdir-subc EQ 'F'.

SELECT SINGLE * FROM tfdir

WHERE pname = tstc-pgmna.

SELECT SINGLE * FROM enlfdir

WHERE funcname = tfdir-funcname.

SELECT SINGLE * FROM tadir

WHERE pgmid = 'R3TR'

AND object = 'FUGR'

AND obj_name = enlfdir-area.

MOVE : tadir-devclass TO v_devclass.

ENDIF.

ENDIF.

  • Find SAP Modifactions

SELECT * FROM tadir

INTO TABLE jtab

WHERE pgmid = 'R3TR'

AND object = 'SMOD'

AND devclass = v_devclass.

SELECT SINGLE * FROM tstct

WHERE sprsl EQ sy-langu

AND tcode EQ p_tcode.

FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.

WRITE:/(19) 'Transaction Code - ',

20(20) p_tcode,

45(50) tstct-ttext.

SKIP.

IF NOT jtab[] IS INITIAL.

WRITE:/(95) sy-uline.

FORMAT COLOR COL_HEADING INTENSIFIED ON.

WRITE:/1 sy-vline,

2 'Exit Name',

21 sy-vline ,

22 'Description',

95 sy-vline.

WRITE:/(95) sy-uline.

LOOP AT jtab.

SELECT SINGLE * FROM modsapt

WHERE sprsl = sy-langu AND

name = jtab-obj_name.

FORMAT COLOR COL_NORMAL INTENSIFIED OFF.

WRITE:/1 sy-vline,

2 jtab-obj_name HOTSPOT ON,

21 sy-vline ,

22 modsapt-modtext,

95 sy-vline.

ENDLOOP.

WRITE:/(95) sy-uline.

DESCRIBE TABLE jtab.

SKIP.

FORMAT COLOR COL_TOTAL INTENSIFIED ON.

WRITE:/ 'No of Exits:' , sy-tfill.

ELSE.

FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

WRITE:/(95) 'No User Exit exists'.

ENDIF.

ELSE.

FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

WRITE:/(95) 'Transaction Code Does Not Exist'.

ENDIF.

  • Take the user to SMOD for the Exit that was selected.

AT LINE-SELECTION.

GET CURSOR FIELD field1.

CHECK field1(4) EQ 'JTAB'.

SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).

CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

i donno how much it would be helpful for you

Regards,

SRI

Read only

Former Member
0 Likes
3,715

supriya,

u can check the below link for the list ofall userexits in 4.6C

http://www.planetsap.com/Userexit_List.htm

Regards,

SRI