How to get CHARG based on matnr

Hi Experts,
          I want to get PO batch(CHARG) based upon matnr.I am using BAPI_PO_GETDETAIL and receiving PO details by providing purchase order number.The line item table there is no field called charg. ..
So How to get Charg based upon matnr
Thanks & Regards
Mathi

Hello,
Get from the table
MCHA - Batches
Regards,
Vasanth

Similar Messages

  • How to get PERNR based on user ID

    Hi All,
    How to get PERNR based on userid.
    please help me in resolving this.
    Thanks for the support.
    Regards,
    Dhananjaya R E

    hope this will help u
    DATA:   t_pernr LIKE pa0105-pernr,
              t_email LIKE pa0105-usrid_long.
    STEP 1 - Find personnel number for UNAME
       SELECT SINGLE pernr
                 INTO t_pernr
                 FROM pa0105
               WHERE subty = '0001'
              AND endda >= sy-datum
             AND begda <= sy-datum
             AND usrid = p_uname.
    Employee record found*
    IF sy-subrc = 0.
    STEP 2 - Find email address for personnel number*
    SELECT SINGLE usrid_long
             INTO t_email
             FROM pa0105
            WHERE pernr = t_pernr
              AND subty = '0022'
              AND endda >= sy-datum
              AND begda <= sy-datum.

  • Anyone know how I get charged a late this month?

    anyone know how I get charged a late this month?

    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • HOW TO GET CHARG AND VFDAT

    hi
    1)  i need to get charg field from  afpo table for that they specified in spec (select process order number(aufnr) for table referencs
    LLY
    2)
    THEY GIVE MCHA TABLE FOR VFDAT AND THEY SPECIFIED IN SPEC(USE BATCH & CHANGE LAST 2 GIGITS OF MATERIAL NUMBER TO "00" TO FIND EXPIRATION DATE IN TABLE MCHA.
    USE THE THE MONTH AND YEAR ONLY
    so plz guide me hoW to get this field
    POINTS SURE VERY URGENT
    regards

    HI KIRAN
    THIS IS MY REQUIEREMENT
    DESCRIPTIION        TABLENAME   FIELD NAME  OTHERS
    1)Batch (Lot No.)     AFPO     CHARG          Select Process Order Number (AUFNR) for Table reference
    2)
    Expiration Date (EXP)     MCHA     VFDAT          Use batch & change last 2 digits of material number to “00” to find Expiration Date in Table MCHA.  Use the month and year only.
    REGARDS

  • How to get data based on selection screen on the output

    Hi Expert,
    Can any one tell me based on material number on slection screen correspondind field i.e on selection scren
    WERKS,MTART,EKGRP,DISPO,BESKZ,MATNR should also get. i.e if i give mtart on selection screen corresponding to material number mtart shoul get.
    NOTE: I HAVE WRITTEN SELECT QUERY FOR TWO TABLES I.E MARA,MBEW.
    Below is my code
    TABLES:MARA,MARC,MARD.
    TYPES: BEGIN OF ty_mbew,
          matnr TYPE matnr,
          bwkey TYPE werks_d,
          lbkum TYPE lbkum,
          END OF ty_mbew.
    TYPES: BEGIN OF ty_close_stk,
           mandt TYPE mandt,
           matnr TYPE matnr,
           cdate TYPE zwkdate,
           bwkey TYPE werks_d,
           meins TYPE meins,
           zlbkum TYPE lbkum,
           WERKS  TYPE WERKS,      "
           MTART  TYPE MTART,
           EKGRP  TYPE EKGRP,
           DISPO TYPE  DISPO,
           BESKZ TYPE BESKZ,      
           salk3 TYPE salk3,
           END OF ty_close_stk.
    TYPES: BEGIN OF ty_mbewh,      
           matnr type matnr,
           bwkey type bwkey,
           lbkum type lbkum,
           lfmon type lfmon,
           end of ty_mbewh.        
    TYPES: begin of wa_matnr,
                matnr type matnr,
           end of wa_matnr.
    dATA : it_matnr type standard table of wa_matnr.
    DATA : it_close_stk_del TYPE STANDARD TABLE OF zclose_stock WITH HEADER LINE.
    DATA : it_close_stk TYPE STANDARD TABLE OF ty_close_stk,
           it_mbew TYPE STANDARD TABLE OF ty_mbew,
           wa_close_stk TYPE ty_close_stk,
           wa_mbew TYPE ty_mbew,
           it_mbewh TYPE STANDARD TABLE OF ty_mbewh,            "89286
           wa_mbewh TYPE ty_mbewh.                              "89286
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
    89286*********************
    SELECT-OPTIONS: WERKS FOR MARD-WERKS,    "Plant
                    MTART FOR MARA-MTART,    "Material type
                    EKGRP FOR MARC-EKGRP,    "Purchasing group
                    DISPO FOR MARC-DISPO,    "MRP Controller
                    BESKZ FOR MARC-BESKZ,    "Procurement type
                    s_MATNR FOR MARA-MATNR.  "Material number
    ************89286***************
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-002.
    select MATNR INTO CORRESPONDING FIELDS OF TABLE IT_MATNR
           FROM MARA
           WHERE MATNR IN S_MATNR.
    SELECT matnr
             bwkey
             lbkum
             salk3            "MSK25072011
             FROM mbew INTO CORRESPONDING FIELDS OF TABLE it_mbew
            WHERE lfgja = fis_year
              where matnr  in s_matnr
               and  bwkey in werks.

    Hi
    Perhaps I don't understand yet, but you have several select-options in your selection-screen, every select-options can be assigned to different tables (MARA, MARC, MBEW), so you need to decide if to use a JOIN o single SELECTION in order to get all data in one step or many steps.
    IF you need to do several selections, these have to be linked in order to get the data for the records selected in the previous selection, something like that:
    SELECT matnr mtart INTO TABLE t_mara
        FROM mara
          WHERE matnr IN s_matnr
            AND mtart IN s_mtart.
      IF sy-subrc = 0.
        SELECT matnr werks ekgrp INTO TABLE t_marc
          FROM marc
            FOR ALL ENTRIES IN t_mara
              WHERE natnr = t_mara-matnr
                AND ekgrp IN s_ekgrp.
        IF sy-subrc = 0.
          SELECT matnr bwkey lbkum salk3 INTO TABLE t_mbew
            FROM mbew
              FOR ALL ENTRIES IN t_marc
                WHERE matnr = t_marc-matnr
                  AND bwkey = t_marc-werks.
        ENDIF.
      ENDIF.
    But you can use an single join with all tables
    Max

  • How to get products based on Material Group 2

    Hi all,
    I want to find out all the products for a particular "Material Group 2". COMM_PRODUCT table dosent contain the Material Group 2 field. I tried finding in other tables, but couldnt find relation between Material Group 2 and the product.
    any hints on how do i proceed ?
    Thanks in advance,
    Raviraj

    Hi Ruth,
    Thanks a lot !. This linkage really works !
    Full credit to u for that !
    Also, I need to get the "Distribution-chain-specific material status" value in CRM. Any hint on this ?
    Regards,
    Raviraj
    Message was edited by: Raviraj Khare

  • How to get Notification based on Partner Information

    Dear Gurus,
    Does anyone have any idea, how to populate Notification details based on Partner Information. The scenario is mentioned below.
    The user creates the Notification and based on equipment cost center, system finds out the approver and update in Partner data in Notification.
    As the Partner user needs to approve the created Notification, how to populate those Notification in a separate z- Application.
    Advance thanks for the comments / update.
    Regards,
    Sahu

    Sahu
    You would need to develop a solution.
    Most of the notification user-exits start with QQMA* - see transaction SMOD.
    PeteA

  • How to get sum based on passed (where condition) value

    Hi all,
    I am having table with empno and jobtitlehours as fields. For each employee, 3 types of jobtitlehours are there. For example, for empno1, he has
    consultant(30 hours), programmer(27 hours), Projectleader(40 hours).
    I want to sum the the jobtitlehours. I am passing employee number as parameter to procedure, which will return the sum of jobtitlehours for that
    employee number.
    How to solve this. As for as i know, we cannot pass WHERE condition with GROUP BY clause.
    Thanks in advance,
    Pal

    It is always helpful to provide the following:
    1. Oracle version (SELECT * FROM V$VERSION)
    2. Sample data in the form of CREATE / INSERT statements.
    3. Expected output
    4. Explanation of expected output (A.K.A. "business logic")
    5. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details.
    Are you looking for something like this?SELECT SUM(consultant + programmer + projectleader)
    FROM emp_x
    WHERE empno = :p_empno

  • How to get Records based on time period?

    Hi,
    Iam having a Table which consists of two columns named "ID" (number datatype) and "JoinDate" (Varchar datatype). I would like to retrive the records whose join date is 3 months before. Any one pls give SQL for this scenario?
    Thanks in Advance...

    Why your joindate is varchar type? Which the sample data looks like? Is the format consistent?

  • How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)

    Hi
      Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).
    the Field i need to get are : SALES TEXT, PO TEXT.
    Sunil.

    Hi Sunil,
    For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.
    Below are examples of PO text and Sales Text:
    1. PO text:
        CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = 'F03'
           LANGUAGE = SY-LANGU
           NAME = '450000011200010' conacte PO number and line item number
           OBJECT = 'EKPO'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    2. Sales order text:
            CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = '0001'
           LANGUAGE = SY-LANGU
           NAME = '0000000036000010' conacte SO number and line item number
           OBJECT = 'VBBP'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    ref: STXH and STXL tables.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • How do you get charge for visual voicemail?

    After reading a couple of post and being completely confused by them I tried an experiment. I turn airplane mode on and then proceed to check my voicemail from earlier.
    The voicemail played without me connecting to AT$T. So this verifies that the actual voicemail is someone being pushed over to your phone. WHich explains why you can now play the voicemail in any order. (it's like playing songs like your ipod basically)
    So then here's the question: DO we still get charged for listening to the message itself?
    ON a traditional cell phone everytime you listen to a voicemail message you lose airtime according to how long you listen to that message. No with the iphone things are different. Voicemails are storage on the handset and not located at at&t.
    Based on what i am reading there are two parts to the visual voicemail. 1.) the actual service that is "pushing" the voice messages to the iphone and 2.) listening to the messages
    Since the message is already on the iphone there is no way for at&t track how many times or how long you've been listening to your voicemail.
    So 2 things can happen. 1.) the visual voicemail plan actually covers the whole thing. Listening to messages on the phone and the service that does the pushing.
    or 2.) as someone earlier posted, you still get charged for voicemail. It's charged before it's been pushed to your phone. So if X calls me and leaves me a 5 minute message, i will lose 5 minutes of airtime before before i even had a change to check the message.
    NOw if number is true then that would suck.
    Can someone verify if this is true

    you don't get charged per message.
    There's a flat rate fee for the visual voicemail service that is included in the $20/month iPhone data plan.
    The information gets sent via the Edge network to your phone, where it is stored until you delete it.

  • Function module to get WM storage bin,storage type based on Matnr

    Logic to pick the storage bn (LQUA-LGPLA)based on MATNR and CHARG(batch).
    The TO qaunt table LQUA is populated when a TO is created.So we need the same logic to get to be implemented .
    Please provide the Function module or logic for the same

    Hello Vikram,
    What you want to do? When you need to use this functional module.
    The following are the user exit available for WM.
    o   MWMTO001 Update own data after TO creation
    o   MWMTO002 Update own data after TO confirmation
    o   MWMTO003 Own stock removal strategy
    o   MWMTO007 Palletization and storage type search for stock placements
    o   MWMTO004 Own stock removal strategy
    o   MWMTO008 Storage type search for stock removals
    o   MWMTO005 TO-related underdelivery
    o   MWMTO006 Bin-related overdelivery and underdelivery
    o   MWMTO009 Prevents deletion of TO items
    o   MWMTO010 Determines total planned TO processing time
    o   MWMTO011 Correction of processing time for TO item
    o   MWMTO012 Transfer order split
    o   MWMTO013 Enhancements of stock removal strategy "Stringent FIFO"
    o   MWMPP001 WM/PP interface: Automatic TR creation
    o   MWMRP001 Replenishment control: Selection of delivery items
    o   MWMRP002 Replenishment control: TR quantity allocation
    o   MWM2S001 Redetermining 2-step picking
    o   MWMD0001 TO printing using print program RLVSDR40
    o   MWMD0002 TO printing (multiple processing) through print program RLKOMM40
    Hope this helps.
    Please explain more about your business process to have accurate response.
    Regards
    Arif Mansuri

  • I have added a work colleague to my family's members on iCloud so we can share the calendar for work appointments. However whe heakes purchases on iTunes I now get charged. How can I stop this happening?

    ive added my work coleague to my iCloud account so we can share the calendar on our I-phones for work appointments. when he makes a purchase on iTunes i now get charged though so how do I stop this from happening? also can I just share only work appointments or do i have to share the whole calendar with him? Can I select what he sees?

    Hi Frantic503,
    Welcome to the Apple Support Communities!
    When you are the Family Sharing organizer, purchases are billed to your account unless the family member making purchases has an iTunes Gift Card or iTunes credit on their account. The attached article has more information on how this process works. 
    Family Sharing - Apple Support
    What I may suggest in your situation would be to discontinue the Family Sharing and use iCloud calendar sharing. Using this method keeps your accounts separate but allows you to still share your calendar. 
    iCloud: Share a calendar with others
    Have a great day,
    Joe

  • How to get SSO userid to URL-based app?

    I'm developing a web-app using Struts that will be accessed by Portal (I guess as a URL-based app). The web-app will not require login. The web-app will not be Portal "aware", except that it requires the SSO userid for auditing/logging purposes.
    I know little about Portal and SSO. How can Portal be configured to send the Portal userid of the logged-in Portal user? Can it send it as a parameter in a GET or POST?
    The version of Portal will be 9.0.2 (or greater).

    This topic is answered in the PDK forum here:
    How to get SSO userid to URL-based app?

  • I purchased a monthly pack and havent been able to use it. I have been getting charged for 3 months now and I still get an error message saying "unable to load all your plans". How do I re-install or dowload and get my last 3 payments reimbursed?

    I purchased a monthly pack and havent been able to use it. I have been getting charged for 3 months now and I still get an error message saying "unable to load all your plans". How do I re-install or dowload and get my last 3 payments reimbursed?

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/
    or
    Adobe contact information - http://helpx.adobe.com/contact.html

Maybe you are looking for

  • HP ProBook 450 G0 and HP Drive Encryption

    But the computer record for one, the rest is left from the last recoils.

  • Reporting Services Unicode Parameters Cause Performance Issues

    When I create a report using string parameters,  reporting services sends the SQL to SQL Server with an N prefix on the string parameters.  This is the behavior even when the underlying data table has no unicode datatypes.  This causes SQL Server to

  • Caller group ringtones for 9300i

    In most phones now a days you can separate incoming phonecalls by giving separate numbers/callers different ringtones. I was extremely surprised to note that this business-oriented phone doesn't seem to have that possibility. Is there any way to make

  • Tcp ip remote control without computer

    Hii, i would like to get data from a device over TCP/IP, or send data but i dont want to use Pc near that device, is there any product or device, that i can connect it from my pc over TCP/IP and get datas. Thanks a lot

  • Launchpad layout resetted after installing Netgear Genie. How to undo?

    After installing netgear genie my launchpad layout got resetted as if you buy a new mac, with on the other pages all other applications sorted by name. Really annoying. Cant find the .app of the genie app, the app isnt in the applications folder, now