2007 Dec 12 5:17 AM
Hi
I need to change the O/P format for tcode ME56 form 3-liner to 1-liner along with the addition of some fileds for Vendor details.
Can any one tell me the way,how to do it?will it be done only by Badi/Exits.
I don;t have knowledge of them?can any one plz tell me?
Plz tell me the way how to proceed.
Moreover,i neeed to know where the description of quta agrement,scheduling arement,info records,outline agreemnets are defiend,at PR level or at PO level.
Regds.
Hi
I need to change the O/P format for tcode ME56 form 3-liner to 1-liner along with the addition of some fileds for Vendor details.
Can any one tell me the way,how to do it?will it be done only by Badi/Exits.
I don;t have knowledge of them?can any one plz tell me?
Plz tell me the way how to proceed.
Moreover,i neeed to know where the description of quta agrement,scheduling arement,info records,outline agreemnets are defiend,at PR level or at PO level.
Regds.
2007 Dec 12 5:25 AM
hi vipin,
You can get the userexits from 2 ways.
first :
goto me56.
menu:system->status.
you will find its program,double click on the program.
That program will open.
goto->attributes.
you will find package.
goto smod,and in information system you will find option for package,paste that package and press enter.
You will find these exits.
or second method
use this prg
&----
*& Report ZUSEREXIT
*&
&----
*&
*&
&----
REPORT zuserexit 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.
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
These are userexits
Reward if useful
Gaurav
2007 Dec 12 6:11 AM
Hi
well i don't know how to work with exits,can u tell me ,how to find the specified one for changing the display & how to work with exits..i havn't hv any knowledge.
regds.
vipin
2007 Dec 12 6:20 AM
hi,
as i have listed down the possible exits, You need to figure poout from the description of exit which are those possible exits for your requirement.
Then one by one you need to test in tcode SMOD.
In SMOD,paste that exit name and click on radio button - > components and display.It will show you the possible function modules.You need to go to that FM by double clicking in the same and you will find one include statement.double click on that also. and you need to save the module.
After that write break-point inside the module. and test your transaction whether it is hitting the exit or not.
This way you can do this,
<b>reward if useful</b>
Gaurav
2007 Dec 12 7:00 AM
Plz tel me,when i am trying to enter into a FM,inside it i found the inculde statement,but when i m trying to entring into it, pop is coming acess key.
so how shd i do,either i hv to mane a Z fm in this regards??
2007 Dec 12 7:17 AM
hi,
it will neve ask for access key.It will issue an warning msg and you need to press enter to continue.Let me know the name of exit you are trying.
Gaurav
2007 Dec 12 7:36 AM
I am just trying to put break-ponit in exit :MM06E010,but as i am trying to entring into it's inculde,its displayimg prg name ZX(include name) is reserved for inculdes of Exit of FM.
even if i am trying to make it to editable mode tha its asking for ascess key.
so can you plz tell me the complete way,i am trying this thing 1 st time,so i need some help.
what is the diff b/w SMOD & COMD.
after putting the break-point,in the particular incule,if it doesn;t woak,than i hv to remove the break-point...its a risky process,as unfortly if i forget to remove any,it can hamper the performance.anyhow,can i make the exit FM as Z,than put the break-point.coz without making the exit in editable mode,how can i put break-pint inside the include.
Well frined ,i am completey new to this concelt,plz if u can explain me how to do..i will appriciate your kind concern.
regds.
2007 Dec 12 8:17 AM
hi vipin,
no worries!!!!!!!!!!!
<b>Program names ZX... are reserved for includes of exit function groups</b>.
This is the message you are getting na. Press Enter as soon as you see this message.This is a warning message.It will ask for creating object,You save this object in a new request.After that include will open for coding. You can place break-point and check its availability by testing the transaction.Keep a habit of deleting the break-point as soon as you get the result , otherwise you can use break username instead of break-point where username is the name with which you got logon.It shows you only when you use the transaction then and then break-point will trigger and for other usernames it will won't trigger
<b>Reward if useful</b>
Gaurav
2007 Dec 12 9:46 AM
gaurav..thnaks a lot.
but can you plz tell me alos that what has to be done with CMOD.why it is used?
is it had any thing to do with the SMOD.can i alos put the break-point through CMOD,or only SMOD is used.
2007 Dec 12 12:46 PM
hi,
CMOD : It is used to create the project which will contain n number of exits implementation.
SMOD : It is direct implementation of the exit.
There is no need for CMOD.Ultimatel when u create the project once,cmod screen is opened automatically.
Use SMOD directly.
Reward if useful.
Gaurav.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |