User Exit to Populate Document number and latest Version in ME21N
Hi,
I am looking to populate :
Document Type (DRAW-DOKAR)
Document Number (DRAW-DOKNR)
while creating Purchase order (ME21N).
I know the tables DRAD and DRAW can be used to get Document Info by populating EKPO-MATNR as Object key.
But is there a user exit to populate it at the time of PO creation.
Found a BADI Document_Number01 but that does not take EKPO-MATNR as input parameter.
Any inputs are really appreciated.
hi,
check these exits.
MM06E003 Number range and document number
M06B0004 Number range and document number
M06B0003 Number range and document number
also check these badi's.
ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
ME_PURCHDOC_POSTED Purchasing Document Posted
Similar Messages
-
User Exit to Populate Data in Uploading Point Field of Transaction MIGO
Hello.
I'm looking for a User Exit or any better way if possible, to populate data in Uploading Point at Transaction MIGO.
Basically my client do not want to enter directly information in this field, in order to avoid data entry errors.
That's why I'm looking for the user exit, to populate the information and my client selected from there.
I appreciate your help.
HectorHi
You can use the enhancement MB_CF001 includes a function module that is called up
immediately before the COMMIT WORK when a goods movement is posted.
All the material document data is passed on to this function module from
the following tables:
o MKPF (Material document header)
o MSEG (Material document items)
o VM07M (Update data)
This data can be passed on to other programs.
Regards
Antony -
In FBL5N report user wants the sales document number to be displayed,
HI, Guys
Need ur help to sort out the problem
In FBL5N report user wants the sales document number to be displayed,
but the sales ducument number column is coming blank and this needs to pick from VBRP table
As I discussed with Abaper, he reqiures a key field which common in BSEG abd VBRP table
So,Please guide me in approaching the right way
MunenderHi,
Speak with your SD consultant. They can set up the copy control in SD so that the sales order is populated in the invoice in field ZUONR (Assignment).This will then copy to the assignment field in accounting.
Alternatively you can use an exit to populate another field during the Posting.
Kind regards -
Service master user exit to populate work center description
Hi experts,
In IW31 work order, I need a user exit to populate the work center description to PR delivery address for control key PM03 with Service Master. I have tried and search in vain for other BADI or user exit but none works.
Is there anyone have solution on this?
Thanks.
Regards
PSKMy abaper has tried a few IWO1_PREQ_BADI, IW010009 and WORKORDER_UPDATE.
Operationally, user require the work centre address as the delivery address of the services due to the company has 24 physical workshop locations.
Anyway, will also try to create the fields in AUFK table as recommended. -
Hi All,
I need a user exit for FI document posting.
My purpose is based on types of G/L accounts i need to add line item data to FI document.(i.e.,inserting into BSEG table )
Can you please suggest me the user exir.
Thanks and regards
PraveenTransaction Code - FB01 Post Document
Exit Name Description
F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
F050S002 FIDCC1: Change IDoc/do not send
F050S003 FIDCC2: Change IDoc/do not send
F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
F180A001 Balance Sheet Adjustment
FARC0002 Additional Checks for Archiving MM Vendor Master Data
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
RFEPOS00 Line item display: Checking of selection conditions
RFKORIEX Automatic correspondence
SAPLF051 Workflow for FI (pre-capture, release for payment)
If you know tcode then you can find out user exits associated with the same with the following code:
*& Report ZUSEREXIT *
*& Finding the user-exits of a SAP transaction code *
*& Enter the transaction code in which you are looking for the *
*& user-exit and it will list you the list of user-exits in the *
*& transaction code. Also a drill down is possible which will help you *
*& to branch to SMOD. *
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.
*---End of Program.
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers -
User exit to populate BSEG field during billing doc release
Hi,
Can anyone identify for me a suitable user exit during Billing Document Release that will allow me to populate a field in bseg?
Many thanks,
RossI got it, thanks anyway.
-
LT04 - User exit to add storage type and storage bin
Hi!
I am looking for a user exit to populate the destination storage type and storage bin (Fields-LTAP-nltyp and LTAP-NLPLA). The user uses tcode LT04 to createt transfer orders from transfer requirements.
The program name is SAPML03T.
Please let me know if anyone has any clue.
Thanks in advance,
Manasa
Message was edited by:
manasaI don't the exact User-Exit...And there are like 104 of them...So why don't you use this report (Not mine) and find out yourself -:)
REPORT zdummy_atg_2.
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
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,
P_PGMNA LIKE TSTC-PGMNA .
DATA WA_TADIR TYPE TADIR.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
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 IN ('SMOD', 'SXSD')
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:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
* Sorting the internal Table
SORT JTAB BY OBJECT.
DATA : WF_TXT(60) TYPE C,
WF_SMOD TYPE I ,
WF_BADI TYPE I ,
WF_OBJECT2(30) TYPE C.
CLEAR : WF_SMOD, WF_BADI , WF_OBJECT2.
* Get the total SMOD.
LOOP AT JTAB INTO WA_TADIR.
AT FIRST.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
ENDAT.
CLEAR WF_TXT.
AT NEW OBJECT.
IF WA_TADIR-OBJECT = 'SMOD'.
WF_OBJECT2 = 'Enhancement' .
ELSEIF WA_TADIR-OBJECT = 'SXSD'.
WF_OBJECT2 = ' Business Add-in'.
ENDIF.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 WF_OBJECT2,
105 SY-VLINE.
ENDAT.
CASE WA_TADIR-OBJECT.
WHEN 'SMOD'.
WF_SMOD = WF_SMOD + 1.
SELECT SINGLE MODTEXT INTO WF_TXT
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = WA_TADIR-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WHEN 'SXSD'.
* For BADis
WF_BADI = WF_BADI + 1 .
SELECT SINGLE TEXT INTO WF_TXT
FROM SXS_ATTRT
WHERE SPRSL = SY-LANGU
AND EXIT_NAME = WA_TADIR-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ENDCASE.
WRITE:/1 SY-VLINE,
2 WA_TADIR-OBJ_NAME HOTSPOT ON,
41 SY-VLINE ,
42 WF_TXT,
105 SY-VLINE.
AT END OF OBJECT.
WRITE : /(105) SY-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , WF_SMOD.
WRITE:/ 'No.of BADis:' , WF_BADI.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
DATA : WF_OBJECT TYPE TADIR-OBJECT.
CLEAR WF_OBJECT.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
READ TABLE JTAB WITH KEY OBJ_NAME = SY-LISEL+1(20).
MOVE JTAB-OBJECT TO WF_OBJECT.
CASE WF_OBJECT.
WHEN 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
WHEN 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
ENDCASE.
Greetings,
Blag. -
Hii ,
I have to send IDOC ORDERS05 to be extended to add custom fields and code an appropriate user exit . Is there any user exit to populate data ??
They have told me to use RSEOUT00 program to send the orders05 idoc . My main concern is which user exit will I use to populate data ??what are the basic steps to populate data and send the idoc Please let me know .
Thank youHi,
Please note that user exits provided in the function module IDOC_OUTPUT_ORDERS.
Use T/Code SE80 and explore function group "XVED". This will give you all the user exit functions in IDOC_OUTPUT_ORDERS.
You can write your code in Zinclude programs .
Ex: ZXVEDU03
CASE SEGMENT-SEGNAM.
WHEN 'E1EDK01'.
CLEAR: WK_PLANT, WK_EQUNR, WK_BNDDT,WI_WERKS.
CLEAR: WK_PLANT_DONE, WK_PRICE_DONE, WK_EQUNR_DONE, WK_BNDDT_DONE.
CLEAR: WK_BAAN_LINE_PRICE_DONE.
CLEAR: WK_BAAN_HEAD_PRICE_DONE.
PRICING_CTR = 3.
WHEN 'E1EDK14'.
MOVE SEGMENT-SDATA TO E1EDK14.
PERFORM Z_EXIT_E1EDK14.
WHEN 'E1EDP19'.
XVBAP = DXVBAP.
MOVE SEGMENT-SDATA TO E1EDP19.
PERFORM Z_EXIT_E1EDP19.
DXVBAP = XVBAP.
and soon.... -
User Exit after posting document (FB01)
Dear all,
I want to change the BSEG entries based on a mapping table.
Is there any User Exit after posting document. I debuged long time and couldnt find any User Exit where u can change the BSEG.
Thank u very much!
best regardsthank u for ur answer. I know it but not really! I know there is also an option. But my question here:
-> Is here no User Exit where I can change the BSEG?
-> It is possible to write a normal ABAP code in the substitution?
Thank u very much -
Which user release the Billing document Number
Hi,
I want to see that which user release the Billing document Number. (release to accouting)
From where we can see this??
Edited by: @ABAP@ on Feb 20, 2010 11:57 AMGo to FB03 --> Enter the document and othe details --> Enter --> next screen click at "Display document header" (Small Cap icon) --> There in field "Entered by" you can see the name
Regards,
MT -
User-exit wich modify batch number in vl31n
Hi,
I have another question.
What is user-exit wich modify batch number in vl31n transaction ?
Regards,
Greg.Hi
Find the available exits with the following program:::
*& Report ZFINDUSEREXIT
report zfinduserexit.
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).
execute this code.
<b>type the transaction. u will get the user exits</b>
If there are no available user exits you could go for badi's.
To search for a badi, go to se 24 display class cl_exithandler. double click on method get_instance, get a break point on case statement. execute and start the required transaction in new session. look for variable exit_name. It would show the available badi's.
regards
ravish
<b>plz dont forget to reward points if helpful</b> -
Excise No. using Accounting Document Number and the P.O. number
Hi All ! In my GL report, I'm displaying the Accounting Document Number and the P.O. number.
Now, the requirement is to display the excise no..
Tried different tables in SE11 using J_1EXC for excise detials, but to no avail.
And last which vendor to pick, Because vendors in P.O and BSEG differs.
If I use the BSEG-BELNR I get a different vendor & If I use the P.O. no. in EKKO then also I get a different vendor.
Please suggest.Hi,
Actually the vendor in the accounting document and PO should match. If not look in table EKBE, It will have the accounting document or at least the invoice receipt against which accounting document would have been created. Check if the vendor number matches with the invoice receipt.
Regarding the excise number I'm not sure what you mean, If you mean excise invoice number, you can look at the J_1IEXCDTL
J_1IEXCHDR tables. You could check with FC on what basis the document is getting created to make out the relation ship. If it is vendor excise no etc. you can hit F1 help to find out the table etc.
Hope it helps.
Sujay -
Billing Document and Material Document number and Date (Goods Issue)
Dear Experts,
Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
ThanksHi Abid
Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
You have to follow the flow from the billing document to the material document. This will only work if the billing document comes from a delivery note.
Billing document => Delivery
LIPS-VBELN = VBRP-VGBEL
and LIPS-POSNR-VBRP-VGPOS
So you have LIPS + LIKP with the LIKP-WADAT_IST as the goods issue date.
Delivery => Material Document Number
You can use the table VBFA with the delivery item as the preceding document number (VBFA-VBELV) and item (VBFA-POSNV) ; you will also have to define the preceding document type as J (delivery) and the document category of subsequent document as R (material document).
Because in SAP nothing is simple, there might more than one material document, because the goods issue (601) movement might have been canceled and issue again. So you will have to decide what to do in that case.
Best Regards,
Franck -
BADI or User Exit validation of operations tab and displaying an error mess
Hello,
Could you please let me know the BADI or User Exit validation of operations tab and displaying an error message in iw32
Thanks,
Suresh MglHi ..
I tried that user-exit...but i need to block the changes for purchase requisition which is in released stutus..
.i hope i need to do implicite enchancement spot.....could you please help me to do that..
Thanks,
Suresh Mgl -
Program/User exit to maintain the number ranges at plant level
Hi Everybody,
Could u please tell me program/user exit to maintain the number ranges at plant level.
Thanks & Regards,
PiyushHi
Do you want to maintain all the number range Objects
For Material Master you can use the enhancement MGA00002
For PO Nu,ber ranges you can use the enhancement MM06E003
Thanks & Regards
Kishore
Maybe you are looking for
-
Re: How do I do a reset on a Officejet 6600 e-All-in-O​ne C155A
I can not use the touch screen as it allways says, missing or failed print head with the setup catriages in, and it wont recognize new catriages. This question was solved. View Solution.
-
How to transfer files from PC to Mac using Ethernet cable?
I am a brand new PC to Mac convert and loving it. I'm just having trouble transferring my files from my PC to my MacBook Pro. I have my PC and Mac connected with an ethernet cable. I'm just not sure what steps I need to take from there. I guess I hav
-
Poi hssf api to generate MS-Excel file
I am using apache's poi hssf api to generate an excel file. Is there any way I can FREEZE PANES of excel sheet. thanks, Pramod
-
How can I get MagicTrackpad to work with Boot Camp and Windows Vista?
Just installed Lion and then installed Magic Trackpad. Now I need to know how to get the Magic Tackpad to work with Windows Vista in my Boot Camp partition. Windows Bluetooth recognizes the Magic Trackpad but it says the device won't confirm the pass
-
Export a SWF from Illustrator CC
Hi, I am just trying to export a illustration which is in Illustrator CC to a SWF file which my client has requested. This, in theory should be as simple as, File, Export, SWF and Save. However just produces a blank file, although all the info sugges