ME21 and ML81n

Dear friends,
I am trying to do BDC for ME21 and ML81n in the same program.
I tried this in Call transaction and Session method. As the limitation of call transaction is we can not do multiple transactions in call transactions in back ground.
That is why i have choosen Session.
The problem here is i have to create service entry sheet for the PO which is created in ME21. That means i need to capture the PO number from ME21 transaction, while running session.
Is that Possible?  If you know an Solutions for this please reply.
Thank you.

Hi pradeep ramakrishna,
Firstly, can u paste piece of code how are you doing ME21 and ML81 in one Program.
If that can bone ... In ME21 for PO the Batch Input Screen field is RM06E-BSTNR and In ML81 for PO no. the Batch Input Screen field is P_BSTNR.
so you can pass RM06E-BSTNR  in temp_po and then this PO to P_BSTNR.
Revert me for any quiries.
Regards,
Suneel G

Similar Messages

  • Remove authorization for Tcode: ME21 and ME22 from certain users

    Hi Guys,
    I'm new to BASIS.
    My requirement is to: Remove authorization to Tcodes ME21/ME22 from a list of users.
    How do I acheive this? We run on SAP 4.0B version.
    Hoping to get this resolved as soon as possible.
    Thanks
    SAPUser

    dear friend,
    1.
    run SU01
    goto Information-Information system
    select node Roles-By Transaction Assignment
    type ME21, ME22
    execute report
    see the roles displayed
    2.
    then find user who have these roles (usually company uses z-roles copied from standard)
    just highlight the role and hit user assignment (Cntrl-Shift-F9)
    you see all users who have this role. that means they are able to run these transactions.
    3.
    let's remove the role(s) we found.
    open second session, run SU01 type one of the user , goto Roles tab and delete the particular role you found.
    save user and test it (ask hem/her to log in sap and run ME21 and ME22). if needed adjust it again (may be another role to be deleted)
    say, fix completely one user/test it and then do the same things for other. test them.
    good luck!

  • Difference between me21 and me21n

    hi,
       plz tell me what is the difference between ME21 and ME21N transaction.....

    Hi,
    Me21n is a new tcode for PO with all the data gathered into a single screen ie. why called enjoy transaction ie. you can see header, item overview, item details in the single screen...
    There are few new added functionalities are :
    You can directly refer the other documents for making or for creation of PO via document overview
    You can have exchange rates get copied..
    with the enjoy transaction you can directly make PR from PO...etc..
    While
    me21 is old tcode for PO having all data distributed inside the main window...
    Hope it helps..
    Regards
    Priyanka.P
    AWARD IF HELPFULL
    Edited by: Priyanka Paltanwale on Aug 22, 2008 7:00 AM

  • Help for User Exit in ME21 and ME22 transaction

    Hello All,
    I am changing a value of the line item entered in the P.O. by ME21 or changed by using ME22. There is a internal table TEKPO in the user exit EXIT_SAPMM06E_012 program ZXM06U43, i am modifying that table with the changed value of the field but while debugging its changing the value in the header and the body of the internal table where as its not showing up the value in the table EKPO.
    Could you pls advise.. ??
    I am using the following statement for modifying the internal table TEKPO where ZREQUIS is the field name.
        MODIFY TEKPO INDEX SY-TABIX TRANSPORTING ZREQUIS.
    Thanx,
    Suresh

    Hi Suresh!
    Your exit gets filled with local variables for the tables parameters, no feedback is taken back.
    Exit EXIT_SAPLEINS_001 is called (directly) before LIS (or BW) updates, I doubt changes relevant for EKPO can still be done.
    Try to make a dynamical assign for a global table. I think POT[] should be the right one.
    Regards,
    Christian

  • Me21 and me21n

    what is the diff?
    is it possible to write the bdc for me21n?

    Hi Mohan,
    ME21 is for creating PO.
    ME21 is like all in one for PO.
    Its not recommended to do  BDC for ME21N transaction(or for that matter any enjoy transactions).
    Its created based on Java and Activex Controls.
    Instead use the <b>BAPI_PO_CREATE1</b>. You can find sample code for creating PO using <b>BAPI_PO_CREATE1</b> in this link.
    Re: BDC for ME21N
    Regards,
    Arun Sambargi.

  • Need to add tab in the me21 and the fields to that tab

    i have one requirement i which i have to  add one tab in the PO thru me21n and that tab is to be placed after the shipping tab.i have to add then the user input fields to it.please suggest me how to find that include,will it be screen exit that i need to create.do i require the access key from SAP for this.
    kindly suggest.
    thnaks

    These are following exits .
    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
    MFAB001 User exit for generation of release order
    RFLB001 Control Items for Contract Release Order
    MPL0001 User subscreen for additional data on AMPL
    Also some of them you can find thru transaction SPRO going into Purchase Order->System Modifications .

  • Message determination and Partner function LS (Logical system) for PO

    Hi,
    I have worked in the past with vendors (VN) as partner roles in a PO, with the message to create an EDI outpout to Partner Type: LI (Vendor), and this works succesfully.
    Now, the idea was to use in EDI, a Partner Type: LS (Logical system) as a receiver of EDI messages (message types: ORDERS) for inbound Purchase Orders to the Partner.
    So, we have set up a respective message condition, with Partner Function: LS  (Logical System), in transaction: MN04 (Create Output-condition records).
    A. When we use ME59N and create a PO with ref. from a PR (created from a sales order), the message determination works well, it reads the condition set in MN04 (condition records for messages), and creates a message (with output type for EDI , medium: 6, and partner function LS: Logical system). Message is created and idoc is sent to partner.
    B. When we try with ME21N, ME21 and we create the PO with ref. to the same PR, either by entering manually the PR in the document overview of ME21N or by selecting the PR (without entering the PR number), i.e with date, the message is not created in the PO.
    Company code is assigned to purchase organization, and so is purchase organization to plant.
    Any idea why there is no automatic message determination in the case of the transaction: ME21N?
    There is a single message condition that is to be read for both cases (trans: ME59N and ME21N).
    Note: If I try ME21N, and enter the output type and partner (=Logical System), manually, I receive a warning message :
    VN006 (Partner XXXX does not exist for partner function LS). If I accept this warning message, then message is saved- idoc is sent.
    However you can not assign a partner function LS to a vendor, in vendor master data, because of message CZ 327 (Can not use this partner role).
    Anyone with similar experience? Thank you for your advice.

    Hi,
    I well understand that the receiving partner can be a partner: Vendor (LI).
    I have seen that working.
    However, in the Partner Profiles (trans: WE20), the receiver was created as a Logical System (LS).
    We want the partner Logical system (LS) to receive the idoc for purchase order (ORDERS).
    After that, I think that the idea is that the LS can generate an idoc for a sales order creation that will then outbound to another partner.  I think that this is the concept.
    The issue is that I have seen that the POs created with transaction: ME59N, have received from message determination (trans: MN04) the message with partner LS (automatically), and the idoc of the purchase order (ORDERS) have reached the partner LS.
    The question is why the message determination fails when creating the PO from trans: ME21N or ME21, with reference to the PR. Message condition is the same and message determination procedure is the same for both cases.
    There is no issue with customizing for the LS in trans: WE20
    (Port processing agent is Active for LS and ORDERS have the proper processing code for application EF).
    I hope I am helping more with this.

  • Clarification on IDOC and ALE

    HI,
        I need to generate an outbound IDOC from transaction ME21N. I have certain doubts on this, please clarify,
    1. What is the difference in ME21 and ME21N.Both creates purchase order.
    2. ORDERS is the message type used for creating the purchase order and I worked to get an IDOC thru ME21 but I didnt generate IDOC from ME21N. I hope ME21 uses ORDERS message type and ME21N uses PORDCR1 Message type. Please clarify and give some inputs.
    3. Can I use the FM 'IDOC_OUTPUT_ORDERS' assigned in process code ME10 for ORDERS01 in PORDCR05. Or do I need to generate new process code and FM for PORDCR05.
    4. Experts, please tell me the steps to genearte IDOC while creating and changing the purchase order thru transaction ME21N & ME22N.
    Thanks.

    Hi Preethi,
    The difference between Me21 and Me21N is that the second one is a Enjoy transaction.
    Enjoy transactions have additional functionalities and generally have been developed in Object oriented programming.
    Orders message type is used for PO's. It doesnt matter if you call in Me21 or Me21N.
    Cheers
    VJ

  • Use the both transactions ME21/ME21N

    Hello,
    we want to use the transactions ME21N . Transaction ME21 is
    still used by companies for batch input files and some flows.This is why up to now we didn't choose to use transaction ME21N.
    Can you confirm that the use of both transactions ME21 and ME21N don't generate problems or create inconsistencies in MM tables?
    Thanks and regards
    Barondra BERGET

    Hi,
    Generally Transactions ending with N are referred as Enjoy transactions that means these transaction are more user friendly when compared with earlier transaction.
    Basic functionality with there will not be any difference when using any of these transactions. you can use these both transactions(ME21, ME21N) simultaneously without any problems. There will not be any inconsistency in the system behaviour. 
    Regards,
    Krishna Mohan

  • Difference between enjoy and non-enjoy transaction

    hi
    can anybody tell me the difference between enjoy transaction and non-enjoy transactions
    for example ME21N is enjoy transaction and ME21 isnt
    we can do a BDC for ME21 and not for ME21N
    basically, is it all transactions finishing with 'N' is enjoy transaction?

    Hi sia,
    1 can anybody tell me the difference between enjoy transaction and non-enjoy transactions
    The main difference, bcos we cannot do bdc is :
    a) The enjoy transactions are based on
       GUI Control (eg. Grid control based on class)
       which are instantiated/created
       on the front-end machine.
      Hence, they cannot be accessed directly by code,
      running on the application server.
      (instead their value is set on the front-end)
      Hence, we cannot do bdc on them.
    regards,
    amit m.

  • Partner function not working when creating PO with ref to PReq

    Partner function is not working when creating a Purchase Order with ref to a Purchase Requistion, Partner functions maintained in the vendor master are VN, OA & PI.
    But OA & PI are not appearing in the PO header partner tab when created with ref to PR.
    however it works when i create the PO directly ( without the PR ref )
    I am using the same material & Plant for both manual PO & PR to PO.
    Any idea what could be wrong .
    I have maintained the settings for schema groups for vendor master & purchasing doc in the partner determination.
    Thanks
    Dkmurthy

    Hi,
    I have also an issue that seems similar to one you are discussing.
    When we use ME59N and create a PO with ref. from a PR (created from a sales order), the message determination works well, it reads the condition set in MN04 (condition records for messages), and creates a message (with output type for EDI , medium: 6, and partner function LS: Logical system). Message is created and idoc is sent.
    When we try with ME21N, ME21 and we create the PO with ref. to the same PR, either by entering manually the PR in the document overview of ME21N or by selecting the PR (without entering the PR number), i.e with date, the message is not created in the PO.
    Company code is assigned to purchase organization, and so is purchase organization to plant.
    Any idea why there is no automatic message determination in the case of the transaction: ME21N
    Note: If I try ME21N, and enter the output type and partner, manually, I receive a warning message
    VN006 (Partner XXXX does not exist for partner function LS). If I accept this warning message, then message is saved- idoc is sent. However I can not overcome the warning message, if it plays any role, because I can not assign partner function LS to the vendor.Then I receive message CZ 327 (Can not use this partner role).
    Any input is wellcome.

  • Upload of purchase order details using LSMW

    Hi friends,
    I encountered a problem while uploading purchase order details using LSMW . in the field mapping I could not able to fine the field TCODE. as a result I could not assign the transaction code ME21. could you please suggest me a solution.
      thanks

    Hai
    Check with the following
    Select fifth Radio button then follow the bellow step
    <b>5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you   will select constant
       and press continue button
       give Transaction Code : ME21 and press Enter</b>
    Thanks & regards
    Sreenivasulu P

  • Purchase order upload using LSMW

    Hi
    Can we use Basic type ORDERS05 in the IDOC method to upload purchase order using LSMW.
    This also can achieved using business object BUS2012 and basic type PORDCR05.
    Just wanted to what would be the difference between these two methods and possibliity of PO using basic type ORDERS05 using Idoc method.
    Regards
    Raj
    Edited by: Rajitha1234 on Jan 28, 2011 6:55 AM
    Edited by: Rajitha1234 on Jan 28, 2011 6:56 AM

    Hai
    Check with the following
    Select fifth Radio button then follow the bellow step
    <b>5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you   will select constant
       and press continue button
       give Transaction Code : ME21 and press Enter</b>
    Thanks & regards
    Sreenivasulu P

  • Short text vs contract item text-Please specify short text more precisely

    Hello all
    1. creating free text PO w.r.t material group for reference to material group contract
    2. miselanious - SHORT TEXT vs Contract MATERIAL group miselanious SHORT TEXT are same
    now i get error Please specify short text more precisely
    Why SAP set as E . if i make W . what are the impacts.
    -> Purchasing
    -> Environment Data
    -> Define Attributes of System Messages
    -> System messages (double click on it)
    Add a new entry
    Version = 00
    Appl.A = 06
    No. = 474
    Cat = E
    if i set W , i could create PO successfully. ..
    Why SAP KEPT ERROR for this matter?
    thanks
    Muthu

    Thanks Jurgen
    Note 371796 - Msg 06474: Please specify short text more precisely
    ME21N, ME22N, ME23N
    Message 06474: "Please specify short text more precisely" for a purchase order with reference to a material group contract.
    Additional key words
    ME21, ME22, material description
    Cause and prerequisites
    In the new transactions for the purchase order, the system displays the message for a material group contract with reference, which is correct, if there is an assigned material without a material number and the short text, which was copied to the purchase order from the contract to help you, was not changed to the actual material text. In this case, the short text of the material should be more specific in the purchase order than that for the material group in the contract.
    For situations in which the specification of the purchase order text does not need to be checked, the message could be made adjustable in Customizing.
    In Transaction ME21 and ME22, the text is not copied and must be entered manually. However the system then no longer carries out a check.
    Solution
    For situations in which the specification of the purchase order text for contracts with the item category material group should not be checked, this note enables you to set error message 06474 in Customizing.
    See the advance corrections.
    any impacts what itcause damage to business.
    bullet points. i will freeze the thread.
    Muthu

  • R/3 Goods Receipt doc

    We have a scenario where by a confirmation is entered onto SRM for a service by our dispatch clerk and this automatically creates a service entry confirmation and goods receipt document in R/3, that I can see in SAP transaction code MB03 and ML81N. The issue is that for the R/3 GR document and accounting documents that are generated in R/3 show systems user SRMRFCUSR as user who posted the GR & Confirmation and account documents.
    Are any OSS notes or BADI codes available that would allow me to default through the SRM dispatch clerks user ID from SRM instead, i.e. CREATED_BY instead of SRMRFCUSR instead?
    Thank you.
    Steve.

    Hi
    <b>Please provide the System version details -></b>
    <u>Meanwhile, go through the following pointers which will help -></u>
    Re: Problem to send idoc for a Good Receipt created
    Re: Creating Confirmations in SRM - What is the preferred method
    MB_CREATE_GOODS_MOVEMENT Idocs in status 64
    Re: Replicating GR custom fields from EBP to SAP R/3
    Re: Confirmation screen field to be mapped to backend field
    Re: IDOC error in R/3 while creating a contract from SRM
    Re: Error in IDOC BLAORD03
    <b>Other SAP Links -></b>
    http://help.sap.com/saphelp_srm50/helpdata/en/75/33724080c8ca01e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/0e/bc7d3c6715c854e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/87/7cc73cee4fb55be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/4b/fe21419d6842b9861fade93597aab3/frameset.htm
    Hope this will help. Do let me know.
    Regards
    - Atul

Maybe you are looking for