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>

Similar Messages

  • MIGO: user exit for checking batch number

    Hello,
    When using MIGO to do goods receipt (101 mvt) I need a user exit in each time a line is added to check the batch number entry. If the batch number is empty for certain materials issue a error message to the user.
    Thanks,
    Peter

    where is your problem then?
    If you create batches automatically with 101 ,then each line will get its batch from SAP, no need to check if there something entered manually.
    Why do you customize auto creation of batches, while you want the user to enter the batches manually?
    can you give a bit more background?

  • Is there a user exit to modify PO line item level..

    Dear Friends,
    Is there a user exit to modify PO line item level..
    Ravi

    Hi...I'm not sure on any available customer exits for this purpose. However you can use the check function exit 'EXIT_SAPMM06E_012' of customer exit MM06E005 and using memory pointers you can change the item level data.
    The other option is to use BADI ME_PROCESS_PO_CUST's method PROCESS_ITEM to change the item level value. I would prefer the BADI rather than the customer exit.. Hope it works..
    Thanks,
    Jude

  • 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,
    Piyush

    Hi
    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

  • VA01 user-exit to modify net price of line item...

    Hello Experts,
    Is there a user-exit to modify the net price value of a line item upon 'ENTERING' in
    VA01 transaction?
    Hope you can help me guys. Thank you and take care!

    Hi,
    The user exits and badis for va01 tcode:
    Enhancement/ Business Add-in Description
    Enhancement
    V45L0001
    SD component supplier processing (customer enhancements)
    V45E0002
    Data transfer in procurement elements (PRreq., assembly)
    V45E0001
    Update the purchase order from the sales order
    V45A0004
    Copy packing proposal
    V45A0003
    Collector for customer function modulpool MV45A
    V45A0002
    Predefine sold-to party in sales document
    V45A0001
    Determine alternative articles for product selection
    SDTRM001
    Reschedule schedule lines without a new ATP check
    V60F0001
    SD Billing plan (customer enhancement) diff. to billing plan
    V46H0001
    SD Customer functions for resource-related billing
    V45W0001
    SD Service Management: Forward Contract Data to Item
    V45S0004
    Effectivity type in sales order
    V45S0003
    RP-relevance for incomplete configuration
    V45S0001
    Update sales document from configuration
    V45P0001
    SD customer function for cross-company code sales
    Business Add-in
    BADI_SD_SCH_GETWAGFZ
    Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001
    SD Customer functions for resource-related billing
    Pls. reward if useful...

  • User Exit to Modify SD Item Category

    Dear Experts:
    I would like to make use of a SD user exit to modify the default item category determined in a sales document. What is the best user exit to use? Would that be form USEREXIT_MOVE_FIELD_TO_VBAPKOM in include MV45AFZB?
    Thanks,
    Dan

    Hi Brad:
    Thanks for the response. Looking at the comment from SAP, I would even think this is the official one to use.
    Cheers,
    Dan

  • User exit to modify a service order (IW32)

    Hi
    I require a user exit to modify a service order (IW32) that is generated via the repair procedure functionality linked to a Sales order.  
    I need to change at the operation level:
    1-      Add an operation with the service material from the sales order.  Get the purchasing group data from the material master.
    2-      Change the first operation -  replace the default purchasing group
    THanks

    Sid,
    [PM/CS User-Exits etc|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf]
    Might be possible by using IWO10009 (at save user-exit) with function modules:
    CO_BP_AFVG_BT_FETCH
    CO_BT_AFVG_UPDATE
    PeteA
    [www.pjas.com]

  • User exit for selection screen of Tcode VL31N, VL32N

    Dear Experts,
    I want to modify selection screen of tcode VL31N, VL32N. Please help me to send user exit Tcode VL31N, VL32N.
    Thanks and regards,
    DucTV1.

    Hi Patrik,
    The ALV report is generating from  a query AQZZ/SAPQUERY/MEMEVL31========, in which the field catalogue of the ALV is coming from normal list dispaly structure only, structure of which is coming from %goo structure.
    Either try to find out an enhancement here , so that you can add fields over there.
    Thanks and Regards,
    Antony Thomas

  • User Exit for MSC2n( Batch) while doing a Good receipt for an order

    Is ther any exit to update the Date1 field(MCHA-FVDT1) in MSC2n( Batch) while doing a Good receipt for an order
    Thanks in advance

    Hi Varsha,
    Try these User Exit.
    BATCHCHK  Function Module Exits for Check in Case of Batch Change
    MBCFC010  Propose batch number on Inventory Management item scree
    SAPLCHVW  Batch where-used list
    SAPLMHD1  Shelf life expiration date
    SAPLV01D  Determining the initial status of a batch
    SAPLV01P  Function Module Exits at Time Batches Are Updated
    SAPLV01Z  CFCs for internal batch number assignment
    SAPLV1ZE  CFCs for external batch number assignment
    SAPLV1ZN  CFCs for batch valuation in VB_CREATE_BATCH
    Regards,
    Vijay

  • Badi or User exit to modify MSEG data during Goods issue

    Hello,
    I have a requirement to modify the field plant MSEG-WERKS while doing goods issue of outbound delivery via transactiona VL02N.
    Can anybody suggest me which BADI or user exit should i use.I have searched the SDN and all the previous threads on this haven't yeild any solution for this.
    I have tried with below listed Badis and enhancements which wont work.
    Badi
    ===================
    MB_DOCUMENT_BADI
    MB_MIGO_BADI
    LE_SHP_GOODSMOVEMENT
    DELIVERY_PUBLISH
    Enhancements
    ===============
    MB_CF001
    MBCF0005
    Thanks and Regards,
    Koustubh

    Hi,
    I am facing a similar issue of updating the MSEG-DMBTR field when Post Goods reciept is done in VL02n.
    I hav tried to update the value in LE_SHP_GOODSMOVEMENT BADI and tried to modify the structure .
    eg in this way
    method IF_EX_LE_SHP_GOODSMOVEMENT~CHANGE_INPUT_HEADER_AND_ITEMS.
    data: wa1 type LINE OF shp_imsegvb_t. "IMSEGVB.
    DATA: flag TYPE c.
    LOOP at CT_XIMSEG INTO wa1.
      wa1-dmbtr = '12345'.
    MODIFY CT_XIMSEG FROM wa1.
    " TRANSPORTING dmbtr.
    flag = 'x'.
    ENDLOOP.
    endif.
    endmethod.
    The value gets updated in the structure but when the material document gets created then the table MSEG has the amount DMBTR field not changed.
    Also, I tried doing the updation in the Function eXit : EXIT_SAPMM07M_001 by the method mentioned in different threads:
    betweeb statemnet if  sy-tcode = 'VL02n'
    FIELD-SYMBOLS: <DMBTR> TYPE any,
    <DMBTR1> TYPE any.
    ASSIGN '(SAPMM07M)MSEG-DMBTR' TO <DMBTR>.
    assign (<DMBTR>) to <DMBTR1>.
    But still on save of the material document in MSEG I cannot find the new DMBTR field value.
    Kindly help me on this, urgently required. I have already gone through the number of threads in the forum, but no solution.

  • User Exit to assign Reference Number xblnr in FB70

    HI Experts,
    i need to assign the reference number XBLNR in transaction FB70.
    Anybody knows wich user exit should i use?
    thank's in advance,
    Fernando S.

    Hi,
    thank you but i will need an exit in order to determine in wich case to assign that reference.
    i also apologize because the transaction code is FV70.
    I'll start a new thread in order to correct the question,
    thank's
    Fernando S.

  • User Exit EXIT_SAPLV01Z_004 in Batch Management

    Hi All
    I am trying to use EXIT_SAPLV01Z_004 in checking of externally created Batch number.The exit is working fine for ROH materials in MIGO.It is not getting triggred at all in MB31 or MSC1N.Can any one guide me.
    S Anil

    Here are user exits for tcode PR04:
    Exit Name           Description
    FITR0001            User exit: Delete/Reorganize trip statistics
    FITR0002            User exit: Create/Change trip statistics
    FITR0003            User exit: Save trip (PR01, PR04, PR05)
    FITR0005            User Exit: Save Trip (PR01, PR04, PR05)
    RPRCST01         Customer Exit for Travel Expenses

  • User exit SAPLV1ZE for batch numbering

    Hello,
    The problem is with user exits. I have to make user exit that checks correct batch numbering. When user enters the batch number in transaction, for example, MSC1N it should check is it according standards. I found that user exit SAPLV1ZE is for such purposes and wrote code for this user exit to save dataset each time it executes, to test is it working.
    As I understand form documentation, this user exit is triggered when you press enter after entering batch number in transaction MSC1N. I tried to do it and everything worked fine (dataset was created)! I added some code and tried to execute it again. It worked, but only once! I tried to execute it again with same code and it didn’t work! Now I commented all the code I added and left only dataset creation part but no results – I can’t make it work again.
    The user exit is activated and the code in it is correct (tried to copy it in report and execute). I thought it can be used only once per material or plant, so I tried to trigger the user exit with different data, but it doesn’t work anyway.
    Maybe anyone of you have this kind of solution in your system or you just have some ideas where the problem could be?
    Any help will be appreciated!
    Thanks in advice!

    The issue is solved! I tried to put break point in function where this user exits are called and it didn't stop when I tried to run it from MSC1N. I tried to do the same from other transactions and found that this user exit is triggered from, for example, MIGO. And it is working fine.
    So the problem was that user exit SAPLV1ZE is not triggered from MSC1N. I'll have to find another user exit...

  • User exit for  modify miro

    Hi all,
    i want user exit for miro. it's trigers when i enter purchase order no.
    also i want modify item data after  enter purchase order no.
    please help me.
    Thanks,

    Hi,
      These are the available user-exits in MIRO:
    Exit Name           Description
    LMR1M001            User exits in Logistics Invoice Verification
    LMR1M002            Account grouping for GR/IR account maintenance
    LMR1M003            Number assignment in Logistics Invoice Verification
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006            Logistics Invoice Verification: Process XML Invoice
    MRMH0001            Logistics Invoice Verification: ERS procedure
    MRMH0002            Logistics Invoice Verification: EDI inbound
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP
    MRMN0001            Message output and creation: Logistics Invoice Verification
    regards
    Aveek

  • User exits/ BADI for batch determination

    Hi,
    I need any user exits or BADI's which are triggered even before the batch determination is done.
    In One of my requirement ,during TO creation i need to pass, ship to KOMPH table( since SHIP TO is not available during a TO) to make it available for batch selection. Where can I do it? Please help!

    Hello Priya,
    Your post is very old but do you remember if you found a solution?
    Thank you in advance.
    Best regards,

Maybe you are looking for

  • Mail 4.4 wont open with my 10.6.8 OS

    Backed up Mail 4.4 from Time Machine but now running 10.6.8. Now when I open Mail it says it is not compatible with the OS. Already tried reinstalling the 10.6.8 update but no mail package inside and I installed the supplement pack as well with no lu

  • Network HP Color LaserJet 2600n is killing us!

    We have a network printer, HP Color LaserJet 2600n and we cannot install it. We deploy Windows 2008 R2 (Virtual Server) printer server over IPP. Users we connect to http://servername/printserver and it will list all network printers. All other HP and

  • Is airport just a router or does it do backups too?

    does airport do backups or is it just a router?

  • Integrating Multiple systems - best practice

    Hi, I need to integrate the following scenario let me know the best practice with steps. Scenario is end to end syncrhonous A system(supports open tech i.e webservice client) => SAP PI<=>Oracle(call stored procedure) => Update in ECC=> Reponse back t

  • How to add the purchasing overhead costs to the material costs

    Hi, I have a requirement to add the purchasing overhead costs like transportation costs to the material costs so that the costs is added to the material costs and update my material price accordingly. Can u tell me how to do it for both standard pric