Product ID and Material Number mapping

Hi All,
I would like to request for your help on this.
How can I be able to find the material number in R/3 using the product ID in CRM?
Currently, I am using the description of the Product to search in R/3 but that is not always the case.
Is there a mapping in CRM to find the corresponding material number in R/3?
Thank you very much!
Best Regards.

Hello,
material Number in R/3 should be equal to Product ID in CRM i.e
COMM_PRODUCT-PRODUCT_ID  =  MARA-MATNR  (Table_Name-Field_Name)
Hope this helps!
Best Regards,
Shanthala Kudva.

Similar Messages

  • Production Order without Material Number and linked to a PM Order...

    Hi All,
    Is it possible to create a Production Order without Material Number (because it is a "just one time" production), and link it to a PM Order (enterred by a sister Plant) in order to finally report the cost to that PM Order?
    And if YES, how to do it???
    Explanation of the problem (business scenario):
    We have 2 Plants. Let say Plant "A" and Plant "B".
    Plant B is producing spare parts for Plant A.
    There are usual spare parts, which have a Material Number.
    But there are also spare parts which will be produced only once, and which don't have a Material Number. (= because it is a very punctual production).
    Plant A needs a punctual spare part.
    It creates a PM Order for Plant B.
    Plant B needs to create a Production Order for that spare part (without Material Number).
    Then, when confirmed and delivered, the cost of that production needs to be reported (assigned) to the PM Order.
    Thanks in advance for your help on the subject.
    Regards,
    Rudy.

    Thank you for the information.
    After some modifications on the Prod.Order Type and the creation of a Reference Operation Set, it seems to work.
    Still have a cost problem, but on the way to be solved.
    Thanks a lot,
    Rudy.

  • Product Category and GL account mapping

    Hi
    We are using SRM 4.0 with ECS scenario.
    Would like to know, whether the Product Category and GL account mapping we do in SPRO is restricts the user to use the same GL account mapped against the product category or it is just a defalut and can it be changed while making PO or SC.
    Thanks

    Hi
    <u><b>This is standard SAP functionality.</b></u>
    <u>The same GL account mapped against the product category, is just a default and it can be changed while making PO or SC. This is not hardcode as such. We emphasize here that we should follow the same GL account and Material Group combination as determined in R/3, the same combination GL and Product caategory needs to be made in SRM as well. (Since finally the PO will get created in r/3, where all the same validation will take place, at the creation of PO from SRM).</u>
    <b><u> The table which holds the data for
    "Define G/L Account for Prod Cat and A/C Assignment Cat" is BBP_DET_ACCOUNT and it holds data in similar manner.</u></b>
    1. Either using the SPRO path
    SPRO-> Account Assignment -> Define G/L Account for Prod Cat and A/C Assignment Categories
    2. Or using SM30 transaction for the table - BBP_DET_ACCOUNT table
    3. Use BADI - BP_DETERMINE_ACCT -> To change GL accordingly as per your logic.
    The SRM G/L account is working on a linkage between product category and account category (cost center, project, asset...) that give you the default G/L account. If this very simple equation does not fit your requirement, you can use badi BBP_DETERMINE_ACCT to implement your own equation.
    <b>Hope this will definitely help. Do let me know.</b>
    Regards
    - Atul

  • Can I download Adobe Creative Suite 5.5 Design Premium on a new Mac if I've had it installed on my old one since December 2011? I have the product key and serial number.

    I bought a new Macbook Pro 13 inch in December 2011 and I bought the Adobe Creative Suite 5.5 Design Premium shortly after and installed it on the computer.  The other day my friend spilled his drink on my computer and it is now going to cost me $800 to get it fixed so I am considering getting a new one instead of getting mine fixed I'm not sure if the memory is still ok or not either.  It didn't get that wet and Apple told me it is more than likely ok but there is no guarantee that they are going to keep the memory when they fix it.  So I was wondering if I get a new one if I can install the Suite on the new one I still have the product key and serial number for the Suite.  Or if I decide to get mine fixed and the memory is swept, then can I reinstall it on mine after it is fixed?  If anyone can help me it would be greatly appreciated!!! Thank You

    deactivate your installation on your old computer (help>deactivate).
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I bought Photoshop CS6 Extended(education edition) for Mac. Now ik want to install it on my (new) macbook. I have the product code and serial number. I receive an error code: may be a false copy. How can I install this program?

    In 2012, I bought Photoshop CS6 Extended (education edition) for Mac. Now I want to install it on my new Macbook. I have the correct serial number and product code, but I receive an error message: the software may be a false copy etc....What to do?

    Here is a copy of the error
    This means : Installation failed.
    Verification of the Adobe Software failed
    The product you want to install is no valid Adobe product and seems to be falsified.
    HUgo
    Op 29-aug.-2014, om 23:42 heeft Jeff A Wright <[email protected]> het volgende geschreven:
    I bought Photoshop CS6 Extended(education edition) for Mac. Now ik want to install it on my (new) macbook. I have the product code and serial number. I receive an error code: may be a false copy. How can I install this program?
    created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Hugo please turn off your e-mail signature.
    If your serial number is listed as being valid at http://www.adobe.com/ then I would recommend obtaining a fresh copy of the installation files.  You can find details on how to locate your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
    To download a fresh copy of the installation files please see Download CS6 products.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6685617#6685617
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Map BATCH number corresponding to ORDER number and Material number .

    hi all,
    i want to map the BATCH number corresponding to Material Number .
    i searched tables MCHA which has two fields Material number and Batch number but it doenot have Order number.
    so how can i get Batch number as in table AFPO/AFKO i have all these three fields batch/material/order numbers.
    but the batch number column is blank for all .
    and in case of table MCHA , these is assigned batch number to every Material number .
    also i want to ask , either the Material number in both tables (MCHA AND AFPO) is same or different as i didnot found any relation to map these three field by other fields too.
    so please suggest me the Possible way to resolve this .....
    sunny

    hi dsk,
    thanks for your earliar reply,
    actually iam working on sapscript there i want to add batch number ,but i am not able to clear my doubt from where i get this.
    how can i map batch number with corresponding to PO num ber, '
    in the report i used structure vbplp with field charg"(batch num).
    also i want to know from which table i can get customer part number and Po number .
    how can i add batch num ,..
    from which table or with which field i can compare itr to get .
    sunny

  • How change plant, net price, OPu, and Material Number from ME32K

    Hi GURUs,
    May let me know how I should configure ME32K in order to allow users to change:
    - Material Number
    - Net Price
    - Order Purchasing Unit
    - Plant
    I have tried setting up field selections layout properly, even debug PBO, it is still greyed out for those fields.
    Please help.
    Thanks,
    Tony Yuwono

    there is no way to change the price in item overview in the contract.
    The reason is explained in OSS note 685117.
    ........The problem is that Scales and/or validity periods may exist for the conditions, because contracts have time dependant conditions, just like info records do.
    This is in contrast to e.g. Purchase orders which have Time independant conditions and so, NO scales nor validity periods.
    A Purchase order has A price! The price maybe determined based on a source; a contract or an info record. Depending on the order quantity and the date, the PO price is determined.
    The contract does not have A date, it might have several; indicated by the validity periods. Furthermore the price is dependant on eventual scales. Therefore it does not have A price either..........

  • Issue to make mandatory field(SELD/BBD and Date of manufactor)in migo for particular Material type and material Number starting with'1' series.

    Hi friend,
    i have issue regarding mandatory  self life field (SELD/BBD and Date of manufactor)in migo for Batch Tab for particular Material start with '1' Series and material type.
    i want to make mandatory above field during GR from migo..any one let me know exit or badi for that to full fill this goal..
    Regard's,
    shaikh Khalid.

    Hi Shaikh
    First of all Thread is not closed seconldy as a good practice if you have resolved your issue kindly document it here so that it may help someone in future
    Nabheet

  • Lexicographic flag setup and material number range change

    Hi gurus,
    got the following situation:
    AS IS:
    Tcode MMNR: Number range for material master part number: AAAAAAAAAAAAAAAAAA   to   ZZZZZZZZZZZZZZZZZZ  (lenght 18, external assignment)
    Tcode OMSL: Lexicographic flag IS NOT setup
    Tcode OMS2: For all material types flag "External no. assignment w/o check" IS SETUP
    Basically we can't create numeric only part numbers.
    The new requirement is to be able to create numeric part numbers like:
    1234
    12345
    0123
    01234  (where the leading zero is a significant character for the part number)
    By doing the following changes:
    MMNR: change number range 000000000000000000  to ZZZZZZZZZZZZZZZZZZ
    OMSL: setup lexicographic AND leading zeros flag
    OMS2: clear flag for External no. assignment w/o check
    I see I do achieve the result: numeric part numbers can be created, leading zeros are managed in the correct way and all numeric part numbers are LEFT-aligned, so looking to MARA you would see part numbers like this:
    00012345
    012345
    012345V
    09CATALIST1
    0AFVAU0001
    12345
    23225V
    23243V
    2SIMBACK3210
    I did already tried all the above changes in the quality system, then created a numeric part number and an alfanumeric part number, for both of them did create a PO, Inbound delivery, posted MIGO, created a sales order, outbound delivery, PGIed without any issue, stock was displayed and managed correctly by the system, same for material docs.
    We already thought about BW, so in case we do the changes BW would be ok.
    Apparently everything is fine so I should go for the production system BUT........  in my mind I'm thinking that OMSL Tcode is usually setup day 1 of an Sap project and then usually you forget it... I have the fear that even if everything looks fine (and Sap allows me to change the customizing), I'm going to muck up the system...
    Have you ever had the same to do ?  I already saw posts similar to this one but already existing conditions were different so to me this case looks like unique so far..
    Any help, suggestion, whatever will be highly appreciated, especially cause I have to take a decision by tomorrow morning
    Many thanks in advance !!
    Enrico
    Edited by: Matt on Aug 13, 2011 7:39 AM - profanity removed

    As you never had numeric numbers, it should not create a big problem.
    I am working in a system with lexicographical setting in use.
    But you have to keep in mind that your sort sequence is quite different to numeric numbers, like this:
    1
    10
    11
    12
    2
    3
    31
    311123
    32
    32012
    4
    And you may get the one or other issue if you download material numbers to Excel, with wrong settings you will loose your leading zeros.
    A similar effect happens most of the time if user not very familiar with Excel give you a file for an upload, as this often is prepared without leading zeros, which could cause a load to the wrong material if the remaining number would be a duplicate:
    0123 and 123
    Of course is a selection by number range  not that easy as it is with numeric numbers.  Usingthe first example a range from 1 to 3 includes materials 10, 11 and  12 as well

  • Serialzn profile and material number table

    Hi ,
    I would like to search materials with serializn profile maintained . Although MARA has both fields I am not getting data output however I am able to see a materialwith ser.profile in mm03 transaction ..
    I nee a table where mat and ser.profile is stored .
    Regards
    Narasimha

    Use table MARC - field name -SERNPfor serialisationprofile & MATNR for material
    You can pass the value of serialisation profile in field SERNP & fetch the material nos from this table
    shakti
    Edited by: SHAKTI BEHERA on Feb 24, 2012 7:48 AM

  • Urgent-production version and material

    Is there a way i can pull the report or details for materials and production version used in a company code?

    Post this in MM forum.
    SAP ERP - Logistics Materials Management (SAP MM)

  • LINK BETWEEN BUSINESS AREA AND MATERIAL NUMBER

    Hello EXPERTS,
    I have a report based on a custom table .The custom table contains company code, materials and their date run as primary keys.
    In the selection screen I am having one field business area, based upon the value entered in the selection screen in business area field I have to retrieve the corresponding materials.
    I want to know the relation between business area and materials ( resp. tables and primary keys)
    Plz any one guide me on this ...
    SRI

    hi ARS,
    Can u be more specific
    based upon the business area I have to retrieve materials... the report which I generated is based upon only one custom table.  In selection screen I am having business area field but it is not existing in the custom table...
    can any one guide me to solve this problem...
    SRI

  • MD04 change of material number

    Hi all,
    In normal cases when you create a production order from MD04, t-code co01 will be opened and when the Production is saved it comes back automatically to MD04 and display the same material number.
    In some cases after saving the production order another material number is displayed in MD04.
    Please share your ideas if you have seen similar problems.
    Thanks in advance

    Hi,
    Please check whether you have used MD06 for MD04.  In this case it gets all the materials from that plant.  Else this problem has to be addressed to SAP.
    Thanks,
    Yeswanth

  • Identification of old material number at plant level

    Dear All,
    We are implementing SAP for  two hospitals. In legacy system each hospital as its own material master and material number. Now in SAP each hospital we are treating as a plant. These two plants are assigned to one company code.
    So it means that there will be one unique material number for two hospitals. Now business wants their old material number (which is maintained differently for two Hospitals) at plant level in search functionality
    How can I achieve with material master
    Regards
    Subhash

    create a class "OLDMAT" for old material number with CL03 for class type 001
    define a characteristic for old material number for each plant  with CT04 and assign it to the class  (can as well be done from within CL03). name it e.g. OLDMXXXX (XXXX = plant number)
    in MM01 select classification view and add the class. after you hit enter you get the fields to add the old material numbers
    Standard F4 help for a material number allows then to search for a material number by classification.

  • Need to get the production order by inputting Material number and serial no

    Hi Experts,
    I have material number and serial number . All I need is PRODUCTION ORDER number.
    Can any one give the table joints for that ?
    Thanks,
    Koya.

    hai check this code.. similar req:
    REPORT z_so_info.
    TABLES: vbak, vbap, afko, afpo.
    *Field catalog
    TYPE-POOLS: slis.
    DATA: lv_repid TYPE sy-repid VALUE sy-repid,
    xfield TYPE slis_t_fieldcat_alv,
    afield TYPE slis_fieldcat_alv.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(25) text-002.
    SELECT-OPTIONS: so_so FOR vbak-vbeln OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
    PARAMETERS:
    p_kunnr LIKE vbak-kunnr, " sold-to
    p_kunwe LIKE vbak-kunnr. " ship-to
    SELECTION-SCREEN END OF BLOCK b2.
    *Constants
    CONSTANTS: c_zor TYPE vbak-auart VALUE 'ZOR',
    c_we TYPE vbpa-parvw VALUE 'WE',
    c_ag TYPE vbpa-parvw VALUE 'AG'.
    * c_space TYPE space.
    *Ranges
    RANGES: ra_parvw FOR vbpa-parvw,
    ra_kunnr FOR vbpa-kunnr.
    *Tables
    DATA: BEGIN OF gt_output OCCURS 0,
    vbeln LIKE vbak-vbeln, " sales order number
    posnr LIKE vbap-posnr, " SO item number
    matnr LIKE vbap-matnr, " material number
    sh LIKE vbpa-kunnr, " Ship-to
    sp LIKE vbpa-kunnr, " Sold-to
    lifnr LIKE ekko-lifnr, " Vendor
    bstnk LIKE vbak-bstnk, " PO number
    banfn LIKE vbep-banfn, " Purchase requi
    po_st TYPE char30, " PO status text
    pstyv TYPE vbap-pstyv, " Item catagory
    aufnr LIKE afpo-aufnr, " Production Order
    prd_stat TYPE string, " Prd order status
    END OF gt_output.
    DATA: wa_output LIKE gt_output.
    FIELD-SYMBOLS: <fs_output> LIKE gt_output.
    *Table for sales order and PO
    TYPES : BEGIN OF gs_data,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    pstyv TYPE vbap-pstyv,
    matnr TYPE vbap-matnr,
    END OF gs_data.
    DATA: gt_data TYPE STANDARD TABLE OF gs_data,
    wa_data TYPE gs_data.
    *Table for Production Orders
    TYPES: BEGIN OF gs_prd,
    aufnr TYPE afpo-aufnr,
    posnr TYPE afpo-posnr,
    kdauf TYPE afpo-kdauf,
    kdpos TYPE afpo-kdpos,
    wepos TYPE afpo-wepos, "Goods Receipt Indicator
    elikz TYPE afpo-elikz, "Delivery Completed Indicator
    objnr TYPE aufk-objnr, "Object number
    * getri TYPE afko-getri, "Confirmed Order Finish Date
    * gltri TYPE afko-gltri, "Actual finish date
    END OF gs_prd.
    DATA: gt_prd TYPE STANDARD TABLE OF gs_prd,
    wa_prd TYPE gs_prd.
    *Table for partner data
    TYPES: BEGIN OF gs_partner,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    parvw TYPE vbpa-parvw,
    kunnr TYPE vbpa-kunnr,
    END OF gs_partner.
    DATA: gt_partner TYPE STANDARD TABLE OF gs_partner,
    wa_partner TYPE gs_partner.
    TYPES: BEGIN OF gs_po,
    ebeln TYPE ekkn-ebeln,
    ebelp TYPE ekkn-ebelp,
    vbeln TYPE ekkn-vbeln,
    vbelp TYPE ekkn-vbelp,
    END OF gs_po.
    DATA: gt_po TYPE STANDARD TABLE OF gs_po,
    wa_po TYPE gs_po.
    TYPES: BEGIN OF gs_preq,
    vbeln TYPE vbep-vbeln,
    posnr TYPE vbep-posnr,
    banfn TYPE vbep-banfn,
    END OF gs_preq.
    DATA: gt_preq TYPE STANDARD TABLE OF gs_preq,
    wa_preq TYPE gs_preq.
    TYPES: BEGIN OF gs_po_stat,
    ebeln TYPE ekko-ebeln,
    procstat TYPE ekko-procstat,
    lifnr TYPE ekko-lifnr,
    END OF gs_po_stat.
    DATA: gt_po_stat TYPE STANDARD TABLE OF gs_po_stat,
    wa_po_stat TYPE gs_po_stat.
    *Field symbols
    FIELD-SYMBOLS: <fs> TYPE tj02t-txt04,
    <fs_temp> TYPE tj02t-txt04,
    <fs_stat> TYPE char30.
    START-OF-SELECTION.
    PERFORM fr_build_range.
    PERFORM fr_get_data.
    PERFORM fr_build_fc.
    PERFORM fr_output.
    *& Form fr_get_data
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_get_data.
    *Get SO
    SELECT a~vbeln a~posnr a~pstyv a~matnr
    FROM vbap AS a
    JOIN vbak AS b
    ON a~vbeln = b~vbeln
    JOIN vbpa AS c
    ON b~vbeln = c~vbeln
    INTO TABLE gt_data
    WHERE b~vbeln IN so_so
    AND b~auart EQ c_zor "Only Sales Orders
    AND c~kunnr IN ra_kunnr. "from selection screen
    DELETE ADJACENT DUPLICATES FROM gt_data COMPARING vbeln posnr.
    *get data of the production order
    IF NOT gt_data[] IS INITIAL.
    SELECT a~aufnr a~posnr a~kdauf a~kdpos a~wepos a~elikz
    b~objnr
    FROM afpo AS a
    JOIN aufk AS b
    ON a~aufnr = b~aufnr
    INTO TABLE gt_prd
    FOR ALL ENTRIES IN gt_data
    WHERE a~kdauf EQ gt_data-vbeln
    AND a~kdpos EQ gt_data-posnr.
    ENDIF.
    *Get partner data
    IF NOT gt_data[] IS INITIAL.
    SELECT vbeln posnr parvw kunnr
    FROM vbpa
    INTO TABLE gt_partner
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln.
    ENDIF.
    *Get Purchase Order
    IF NOT gt_data[] IS INITIAL.
    SELECT ebeln ebelp vbeln vbelp
    FROM ekkn
    INTO TABLE gt_po
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND vbelp EQ gt_data-posnr.
    SELECT vbeln posnr banfn
    FROM vbep
    INTO TABLE gt_preq
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND posnr EQ gt_data-posnr.
    ENDIF.
    IF NOT gt_po[] IS INITIAL.
    SELECT a~ebeln a~procstat a~lifnr
    FROM ekko AS a
    JOIN ekpo AS b
    ON a~ebeln = b~ebeln
    INTO TABLE gt_po_stat
    FOR ALL ENTRIES IN gt_po
    WHERE b~ebeln EQ gt_po-ebeln
    AND b~ebelp EQ gt_po-ebelp.
    ENDIF.
    *Move data to output table
    LOOP AT gt_data INTO wa_data.
    wa_output-vbeln = wa_data-vbeln.
    wa_output-posnr = wa_data-posnr.
    wa_output-pstyv = wa_data-pstyv.
    wa_output-matnr = wa_data-matnr.
    READ TABLE gt_po INTO wa_po WITH KEY vbeln = wa_data-vbeln
    vbelp = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-bstnk = wa_po-ebeln.
    READ TABLE gt_po_stat INTO wa_po_stat WITH KEY ebeln = wa_po-ebeln.
    IF sy-subrc EQ 0.
    wa_output-lifnr = wa_po_stat-lifnr.
    CASE wa_po_stat-procstat.
    WHEN '01'.
    wa_output-po_st = 'Version in process'.
    WHEN '02'.
    wa_output-po_st = 'Active'.
    WHEN '03'.
    wa_output-po_st = 'In release'.
    WHEN '04'.
    wa_output-po_st = 'Partially released'.
    WHEN '05'.
    wa_output-po_st = 'Released Completely'.
    WHEN '08'.
    wa_output-po_st = 'Rejected'.
    ENDCASE.
    ENDIF. "inner read subrc
    ENDIF. "outer read subrc
    READ TABLE gt_preq INTO wa_preq WITH KEY vbeln = wa_data-vbeln
    posnr = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-banfn = wa_preq-banfn.
    ENDIF.
    READ TABLE gt_prd INTO wa_prd WITH KEY kdauf = wa_data-vbeln
    kdpos = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-aufnr = wa_prd-aufnr.
    *get the purchase requisition for production order as well
    SELECT SINGLE banfn
    FROM ebkn
    INTO wa_output-banfn
    WHERE aufnr EQ wa_prd-aufnr.
    *Get the status of the production order
    PERFORM fr_get_prd_stat USING wa_prd-objnr
    CHANGING wa_output-prd_stat.
    ENDIF. " sy-subrc
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_we.
    IF sy-subrc EQ 0.
    wa_output-sh = wa_partner-kunnr.
    ENDIF.
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_ag.
    IF sy-subrc EQ 0.
    wa_output-sp = wa_partner-kunnr.
    ENDIF.
    APPEND wa_output TO gt_output.
    CLEAR: wa_data, wa_prd,wa_partner,wa_output.
    ENDLOOP.
    ENDFORM. " fr_get_data
    *& Form fr_build_range
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_build_range .
    *Range for partner function
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SH' TO ra_parvw-low. " we
    APPEND ra_parvw.
    CLEAR ra_parvw.
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SP' TO ra_parvw-low. " ag
    APPEND ra_parvw.
    CLEAR ra_parvw.
    *Range for ship-to and sold-to
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunnr TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunwe TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    ENDFORM. " fr_build_range
    *& Form fr_build_fc
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_build_fc .
    * sales order number
    afield-fieldname = 'VBELN'.
    afield-seltext_s = 'Sales #'.
    afield-ref_tabname = 'VBAK'.
    APPEND afield TO xfield. CLEAR afield.
    * sales ITEM number
    afield-fieldname = 'POSNR'.
    afield-seltext_s = 'Item #'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    * Material Number
    afield-fieldname = 'MATNR'.
    afield-seltext_s = 'Material #'.
    afield-ref_tabname = 'VBAP'.
    afield-outputlen = 10.
    APPEND afield TO xfield. CLEAR afield.
    *Vendor Number
    afield-fieldname = 'LIFNR'.
    afield-seltext_s = 'Vendor Num.'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    * ship-to-party
    afield-fieldname = 'SH'.
    afield-seltext_s = 'Ship-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    * sold-to-party
    afield-fieldname = 'SP'.
    afield-seltext_s = 'Sold-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    *PO number
    afield-fieldname = 'BSTNK'.
    afield-seltext_s = 'PO NUM'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PO status
    * afield-fieldname = 'PO_STAT'.
    * afield-seltext_s = 'Step'.
    * afield-ref_tabname = 'zbacklog_v2'.
    * APPEND afield TO xfield. CLEAR afield.
    *PO step status
    afield-fieldname = 'PO_ST'.
    afield-seltext_s = 'PO.Status'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    *Purchase requisition
    afield-fieldname = 'BANFN'.
    afield-seltext_s = 'Pur. Req.'.
    afield-ref_tabname = 'VBEP'.
    APPEND afield TO xfield. CLEAR afield.
    *Item catagory
    afield-fieldname = 'PSTYV'.
    afield-seltext_s = 'Itm. Catg'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    *Prodcution Order number
    afield-fieldname = 'AUFNR'.
    afield-seltext_m = 'Prod.Order'.
    afield-ref_tabname = 'AFKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PRODCUTION status
    afield-fieldname = 'PRD_STAT'.
    afield-seltext_s = 'Prd. Step'.
    afield-ref_tabname = 'zbacklog_v2'.
    afield-outputlen = 20.
    APPEND afield TO xfield. CLEAR afield.
    *PRODUCTION step status
    * afield-fieldname = 'PRD_ST'.
    * afield-seltext_s = 'Prd. Status'.
    * afield-ref_tabname = 'zbacklog_v2'.
    * APPEND afield TO xfield. CLEAR afield.
    ENDFORM. " fr_build_fc
    *& Form fr_output
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_output .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    * I_CALLBACK_PF_STATUS_SET = ' '
    * I_CALLBACK_USER_COMMAND = ' '
    * I_STRUCTURE_NAME =
    * IS_LAYOUT =
    it_fieldcat = xfield[]
    i_default = 'X'
    i_save = 'A'
    TABLES
    t_outtab = gt_output
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    ENDFORM. " fr_output
    *& Form fr_get_prd_stat
    * text
    * -->P_WA_PRD_OBJNR text
    FORM fr_get_prd_stat USING p_objnr CHANGING p_prd_stat.
    DATA: lt_status TYPE STANDARD TABLE OF jstat,
    wa_status TYPE jstat,
    lv_status TYPE tj02t-txt04,
    lv_temp2 TYPE char5,
    lv_buff TYPE string.
    CALL FUNCTION 'STATUS_READ'
    EXPORTING
    client = sy-mandt
    objnr = p_objnr
    only_active = 'X'
    TABLES
    status = lt_status
    EXCEPTIONS
    object_not_found = 1
    OTHERS = 2.
    LOOP AT lt_status INTO wa_status.
    IF wa_status-stat(1) EQ 'I'.
    SELECT txt04 FROM tj02t
    INTO lv_status
    WHERE istat EQ wa_status-stat
    AND spras EQ 'E'.
    ENDSELECT.
    lv_temp2 = lv_status.
    CONCATENATE lv_temp2 p_prd_stat INTO p_prd_stat
    SEPARATED BY ','.
    ENDIF.
    CLEAR: wa_status, lv_status, lv_temp2.
    ENDLOOP.
    lv_buff = p_prd_stat.
    *Status of Production Order
    IF lv_buff CS 'CRTD'.
    p_prd_stat = 'Not Active'.
    ENDIF.
    IF lv_buff CS 'REL'.
    IF lv_buff CS 'GMPS'.
    p_prd_stat = 'Printed In Prod'.
    ELSE.
    p_prd_stat = 'Printed'.
    ENDIF.
    ENDIF.
    IF lv_buff CS 'TECO'.
    p_prd_stat = 'Technically Compt.'.
    ENDIF.
    ENDFORM. " fr_get_prd_stat

Maybe you are looking for

  • Why I can't send or receive iCloud email on my iMac Mavericks ?

    For some weird reason my IMac suddenly would not permit sending or responding to iCloud emails. Shortly thereafter it quit receiving email. I can still read and send email on my ipad. An msn email account on the iMac receives but can't send. Help!

  • How to upgrade MB Pro Lion to Yosemite

    Looking for some "how to" advice on upgrading software from(Late Year 2011) 15" Mac Book Pro Lion 10.7.5 to newer Yosemite OS X.    I'd also like to remove  all old non-working Power PC Apps and any other junk, bugs or viruses it might have.   Lookin

  • Mapping Issue - Urgent

    Source <source> <Record> <Date>5/15/2008</Date> <DocType>ZL</DocType> <CompCode>1010</CompCode> <GL_Account>21300119</GL_Account> <Amount>14,357.83</Amount> </Record> <Date>5/5/2008</Date> <DocType>ZL</DocType> <CompCode>1020</CompCode> <GL_Account>2

  • Migration from Split Ledger to NewGL

    Hi, We have been using Split Ledger since 4.62. As far as I understand the data migration tool from Split Ledger to NewGL is only available in Enhancement Package 4 which is currently at ramp-up stage. Question: dose anybody know any organization (a

  • Supplier self-registration logo

    Is there a possibility to add the company logo in the different supplier self-registration forms / pages? I cannot seem to find a way to add the company logo... Thanks, Bram