How To determince PGRP based on Plant

Hi ,
We need to determine purchasing group based on plant in SC item details tab.
Which badi we can use for the same.?
Regards,
Nilesh

Hi Nilesh,
Sorry for the late response.
You are right, i enhanced following two structures
BBPS_RESP_ITEM_DATA_BADI
bbps_om_resp_item_data
And enhanced following program to populate the values in one of this structure.
LBBP_OMF03
Structure BBPS_RESP_ITEM_DATA_BADI is being used by BADI BBP_PGRP_FIND.
By adding two new fields in this structure Plant and Item GUID and populating the values in program LBBP_OMF03; i managed to set default Purchasing group based on plant.
When user changes the plant at the line item level; the re determination of Purchasing group from plant was done in BBP_DOC_CHANGE BADI.
Regards,
Ashish Shah

Similar Messages

  • How to fetch the current stock of material based on Plant?

    Hi Experts,
    Could any one tell how do i need to get the current stock data of the material based on Plant.
    Thanks in advance.
    Regards,
    Abdur Rafique

    Hi ,
    MBEW stores the value of particular stock . T-code to find stock MMBE compare both wiht table and tcode.
    please let me know if you still find any issues .
    Thanks and regards,
    Rajeshwar

  • How to assign sampling procedure at plant level.

    Hi Team,
    Pls suggest me "How to assign sampling procedure at plant level."
    Error message is  -  You can not use sampling procedure here.
    Not all sampling procedures can be used in this context.
    Example:
    Only the sampling procedures for an attributive inspection based on the
    number of nonconforming units are allowed.
    However I have assigned 0.05% sampling procedure in IDES system plant, which is accepted. However I am not allowed to assign this in client system..
    Pls suggest me solution.
    Thanks

    Hi,
       During creation of inspection plan you can assign SP at plant level, IP always at plant level
    Q.Error message is - You can not use sampling procedure here.
    ---> pl check the MIC where Sampling procedure in clicked or not
           pl revert
    Cheers,

  • How to find materials in a plant

    Hello gurus
              Can anybody tell me 1. how to see materials in a plant ?
                                                2.Error Message SG105 Enter rate / USD rate type M for 03/21/2008 in the system setting.
    i am struggling with it please any body can help me
    Note : Please search forum before posting,Go through forum rules
    Edited by: Jeyakanthan A on May 26, 2011 12:28 AM

    Hi Kalyan,
    To find or to listout the materials based on the plant means, use t.code: MM60 and give the plant.
    then, you can retrieve the list of materials specifict to that plant.
    Or else you can also see,  all the relevent data of each material specific to the Plant or Plants through ABAP table view.
    use t.code:  SE16 or SE16N   in that enter table name:   MARC  or MARD     enter the Plant (s) , then execute (F8)
    it will listout all the relevent data of each material of the plant (s).
    But,
    where as the message what you have given is not specific to the question that you are asking?  and
    that is more relevent to exchange rate maintainence for currency " M " type. for USD vs INR combination or your client company code specific currency.
    Pls, let us get the clarity on the question, please?
    Hope you have understood.
    Regards,
    Sapsrin

  • Dynamic F4 help for workcenter based on plant given in select-option

    Hi all,
    I need to give F4 help on work center based on plant values in the select-options in the selection screen. I am using the FM DYNP_VALUES_READ to get the low and high values in the plant  field of selection screen. The problem is i do not know how to fetch the extension values of s_werks. dynpro fields what i am passing is s_werks-low and s_werks-high. But how will i name the extension field of s_werks. Even i have tries giving only s_werks. But FM is giving invalid dynpro field exception . Please help on this.

    You need to use FM DYNP_VALUES_READ to read values entered on selection screen and then you need to use FM F4IF_INT_TABLE_VALUE_REQUEST.
    FM DYNP_VALUES_READ can read the values of screen fields
    You have to use the function module DYNP_VALUES_READ to read the selection screen data after u enter the field value in Plant . Based on that, then call the function module F4_INT_VALUE_REQUEST. And this function module will
    retrive based on the value enter on the field1.
    F4IF_INT_TABLE_VALUE_REQUEST
    This function module displays a value list that you created in an ABAP program. The value list is passed to the function module as the table parameter VALUE_TAB. If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the user’s selection is returned to the corresponding field on the screen. If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.
    Have a look at below sample code:
    If you have two parameters, you want to display values(f4) in parameter 2 depending on the values entered in parameter 1.
    REPORT Z_SRI_HELP_VALUE_FOR_TABLES .
    tables tcurt.
    DATA DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.
    PARAMETERS: P_WAERS LIKE TCURT-WAERS, "Currency
    P_LTEXT LIKE TCURT-LTEXT, "Long Text
    P_KTEXT LIKE TCURT-KTEXT. "Short Text
    Example of updating value of another field on the screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.
    CLEAR: DYFIELDS[], DYFIELDS.
    *select currency
    CALL FUNCTION 'HELP_VALUES_GET'
    EXPORTING
    fieldname = 'WAERS'
    tabname = 'TCURT'
    IMPORTING
    SELECT_VALUE = P_WAERS.
    get long text for the selected currency
    SELECT SINGLE LTEXT FROM TCURT
    INTO DYFIELDS-FIELDVALUE
    WHERE SPRAS = SY-LANGU
    AND WAERS = P_WAERS.
    IF SY-SUBRC 0.
    CLEAR DYFIELDS-FIELDVALUE.
    ENDIF.
    update another field
    DYFIELDS-FIELDNAME = 'P_LTEXT'.
    APPEND DYFIELDS.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    tables
    dynpfields = DYFIELDS .
    Example of reading value of another field
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KTEXT.
    *read another field
    CLEAR: DYFIELDS[], DYFIELDS.
    DYFIELDS-FIELDNAME = 'P_WAERS'.
    APPEND DYFIELDS.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    TABLES
    DYNPFIELDS = DYFIELDS .
    READ TABLE DYFIELDS INDEX 1.
    get short text and update current field
    SELECT SINGLE KTEXT FROM TCURT
    INTO P_KTEXT
    WHERE SPRAS EQ SY-LANGU
    AND WAERS EQ DYFIELDS-FIELDVALUE.
    Have a look at below sample code:
    REPORT ZTEST_F4 .
    DATA : BEGIN OF ITAB OCCURS 0,
    NAME LIKE KNVK-NAMEV,
    E_MAIL LIKE ADR6-SMTP_ADDR,
    END OF ITAB.
    PARAMETER : P_EMAIL LIKE ADR6-SMTP_ADDR.
    INITIALIZATION.
    ITAB-NAME = 'A'.
    ITAB-E_MAIL = email@removed '.
    APPEND ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_EMAIL.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'E_MAIL'
    DYNPPROG = 'ZTEST_F4'
    DYNPNR = '1000'
    DYNPROFIELD = 'P_EMAIL'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = ITAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    Another Code sample:
    REPORT DEMO_DYNPRO_F4_HELP_MODULE.
    TYPES: BEGIN OF VALUES,
    CARRID TYPE SPFLI-CARRID,
    CONNID TYPE SPFLI-CONNID,
    END OF VALUES.
    DATA: CARRIER(3) TYPE C,
    CONNECTION(4) TYPE C.
    DATA: PROGNAME LIKE SY-REPID,
    DYNNUM LIKE SY-DYNNR,
    DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
    FIELD_VALUE LIKE LINE OF DYNPRO_VALUES,
    VALUES_TAB TYPE TABLE OF VALUES.
    CALL SCREEN 100.
    MODULE INIT OUTPUT.
    PROGNAME = SY-REPID.
    DYNNUM = SY-DYNNR.
    CLEAR: FIELD_VALUE, DYNPRO_VALUES.
    FIELD_VALUE-FIELDNAME = 'CARRIER'.
    APPEND FIELD_VALUE TO DYNPRO_VALUES.
    ENDMODULE.
    MODULE CANCEL INPUT.
    LEAVE PROGRAM.
    ENDMODULE.
    MODULE VALUE_CONNECTION INPUT.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = PROGNAME
    DYNUMB = DYNNUM
    TRANSLATE_TO_UPPER = 'X'
    TABLES
    DYNPFIELDS = DYNPRO_VALUES.
    READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
    SELECT CARRID CONNID
    FROM SPFLI
    INTO CORRESPONDING FIELDS OF TABLE VALUES_TAB
    WHERE CARRID = FIELD_VALUE-FIELDVALUE.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'CONNID'
    DYNPPROG = PROGNAME
    DYNPNR = DYNNUM
    DYNPROFIELD = 'CONNECTION'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = VALUES_TAB.
    ENDMODULE.
    The screen flow logic is as follows:
    PROCESS BEFORE OUTPUT.
    MODULE INIT.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    PROCESS ON VALUE-REQUEST.
    FIELD CONNECTION MODULE VALUE_CONNECTION.
    For the Flight number field, the POV module VALUE_CONNECTION is called. The
    function module DYNP_VALUE_READ transports the value of the screen field CARRIER into the program. The program then reads the corresponding values from the database table SPFLI into the internal table VALUES_TAB using a SELECT statement, and passes the internal table to F4IF_INT_TABLE_VALUE_REQUEST. This displays the internal table as input help, and places the user’s selection into the screen field CONNECTION.
    I hope it helps.
    Best Regards,
    Vibha
    Please mark all the helpful answers

  • How to HIde rows based on User Selection

    I have a requirement where in I have to hide some rows based on Plant Name selected by USer at the time of opening the report.
    Here is the screen  shot:-
    Here I am seeing two Tag Types MACT and Average when User selects  Luling Plant. But When User selects some other Plant I don't want to see Tag Type 'MACT' in this table.
    We have a predefine filter for Plant.
    How can I achieve that. The data in White Rows is Average values.
    Please help.
    Regards

    Hi Shalini,
    Is user selecting Plant Name from the report prompt. If Yes, then try below-
    Create a variable-
    FilterSelect= If UserResponce("WritePromptTextHere") =" Luling Plant" and TagType inList ("MACT";"Average") Then 1 ElseIf  UserResponce("WritePromptTextHere") <>" Luling Plant" and TagType inList ("MACT";"Average") Then 3 Else 2
    Apply Filter on "FilterSelect" variable-
    FilterSelect=1 and 2
    ~Anuj

  • My client want to create realease strategy based on plant for PO

    Hi all,
    1.My clients want to create realease strategy based on plant for PO. Kinldy let me know the the possibilites and steps.If it is not possible let me know the reason so that I can explain to the client
    2.how can I take print of credit note and MIRO kindly let me know  T,code.
    hope to hear back from you all....
    Thanks&Regards,
    chand

    Hi chandysrm ,
    You can creatye Release strategy for plant specfic.
    Create charetestic (CT04) for plant : CEKKO-WERKS.
    Assign with Class (CL02) --032
    Create Rel. Group , Rel. Code & Rel. Strategy.
    create rel. strategy for each different plant.
    In classification view give the plant code.
    [http://wiki.sdn.sap.com/wiki/display/ERPSCM/RELEASE+PROCEDURE]
    [PO Release Resetting after Value Reduction;
    [Separate release procedure for PO and PO under contract]
    [release procedure for contract]
    [release procedure for contract]
    Credit note print out : MR90.
    SAM
    Edited by: Saminathan Gopalan on Jun 9, 2010 10:39 AM

  • Billing document number based on plant

    Hi friends, I have new requirement from customer
    Billing document number should be based on plant
    Ex: Range start from 900000 u2013 for plant ABC1
          Range start from 800000 u2013 for plant  ABC2
    How to achive this
    regards
    Satish

    Create a zee table say ZV_NUMRANGE for the combination of plant, billing type & number range object.  There maintain some objects according to plant and save.
    Next go to VN01 and maintain number ranges according to requirement and save.
    Finally apply USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ) and trigger the above table as and when VF01 or VF04 is executed.
    thanks
    G. Lakshmipathi

  • How to block calls based ANI for individual user?

    I want to know how to block calls based on ANI for individual user in CUCM?  Lets say if the individual wants to block calls from certain number.
    Malicious call id - softkey will not work for our purpose.
    calls come to cucm via mgcp gateway.  cucm 9.x
    thanks,

    How to block calls has been asked hundreds, and hundreds of times at CSC, a simple search would have provided you with all the necesarry information. Please search before you ask
    https://supportforums.cisco.com/docs/DOC-19628
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • How Redirect browser(client) based on non-negotiable SSL/TLS protocol or cipher

    Hi guys,
    we have a security requirement wherein we have to  force the browsers accessing our asp.net application hosted on windows server 2012 to have atleast tsl 1.1 , but we don't want to simply block the request, instead we would like to redirect the request
    to a unsecured static html page with the instructions on how to get them onto tsl.
    can any one help me here?>? actually i found a similar and exactly same thread on stackoverflow but i think that is probably directed towards linux family.   http://serverfault.com/questions/591188/redirect-browser-based-on-non-negotiable-ssl-tls-protocol-or-cipher
    please help me guys..
    ps: i have posted the same question on IIS forum (http://forums.iis.net/t/1223352.aspx?How+Redirect+browser+client+based+on+non+negotiable+SSL+TLS+protocol+or+cipher+from+IIS)
    and got a reply saying that it can be done at windows kernel level(possibly).

    Hi,
    As far as I know, once SSL handshake fails, no subsequent communication would occur between the server and client.
    Therefore, as the way I see it, the goal cannot be achieved.
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • CFM /TR - how system calculate amount based on rate FX 60A

    Hi all,
    i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
    steps input:-
    1. header - comp code, product type, trans type
    2. partner
    3. purchase curr & amount (eg. IDR 8,345,545,500)
    4. sale currency only (amount system will auto calculate) USD
    5. rate field = 11.553
    6. spot rate will auto pick up from rate
    7. value date
    8. contract date
    upon TBB1 no error. posting log as follows:-
    FX1000+ : 40 8,345,545,500 IDR bank GL acc
                    50 8,345,545,500 IDR clearing acc
    FX2000- : 40 722370.42 USD clearing acc
                   50 722370.42 USD bank GL acc
    but upon TPM18 error occurred as follows:
    DBT_C009 - GL not maintain in acc symbol 5.3.4
    DBT_E039 - no posting spec assigned to update type
    DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
                       50 0 USD, 431,977,511 IDR clearing acc
    so, after maintained DBT_C009 as follows still error for DBT_E039:
    40  0 USD, 38 IDR clearing acc
    50  0 USD, 38 IDR P&L gl acc
    what i don't understand is how system calculate and get DBT_C009 & DBTE039.
    what is the function of TPM18?
    thanks.

    Hello Prarnod,
    I have done the first node only for actuals that come from the integration to the internal order.
    I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
    Thanks,
    Paul

  • How to create Formula based value field in COPA

    Hi,
    I want to know how to create formula based  value field in COPA
    My Requirement is i want to collect some value in formula based value field and want to use in copa allocation cycle as a tracing
    factor.
    anybody give some light on the same topic or requirement ?
    Thanks
    Nilesh R

    The key figure you are creating in KE2K is not a value field, i.e. you can't post to it and you can't use it in a report. It is a caluculated value that can be used only in assessment and top-down-distribution.
    In Ke2K, enter a name for your key figure, then click on the the white sheet button to create it. Now the formular area is open for input. Input your formular (e.g. VV001 + VV002 - VV003 .... where VVXXX are the technical names of value fields).
    Now click the "check formuar"-button. Then save.
    Before you can use the key figure in assessment, execute TC KEUG.
    Now the key figure is available as any value field in the tracing factor selection of your assessment cycle.
    I hope this made it clearer.
    Regards
    Nikolas

  • Function Module to get PO details based on Plant and PO date

    Hi
    1. Is there any Function Module to get PO details based on Plant and PO date?
    2. Is there any Function Module to get Material document details based on PO number?
    Thanks
    Narendra

    hi,
    check these standard reports.
    ME2L - By vendor
    ME2M - By material
    MSRV3 - By service
    ME2K - By account assignment
    ME2C - By material group
    ME2B - By tracking number
    ME2N - By PO number
    ME2W - By supplying plant
    also chck this func module.
    REPL_LIST_PURCHASE_ORDER_READ
    reward if hlpful.

  • How to create Profile Based Rule in Endeca Studio Developer

    Hi,
    Can anybody tell me how to create Profile based rule in the Endeca Studio Developer. and how to fecth the data in the JSP. what are the parameter required to pass in the ENEQuery
    Thanks
    Shailesh

    I use visual studio 2012.
    I dont see rule set editor which can help me create busineesss rule.
    Where can I find it?
    Hi Rajesh,
    If you want to learn more information about RuleSet Editor in .net framework 4.5, check out https://msdn.microsoft.com/en-us/library/ee960221(v=vs.110).aspx
    for more information. 
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use ICC based colorspace

    hello,
    The question is how to define a color in ICC based colorspace ?
    I tried with gState.strokeColorSpec.value.color array and it work fine when my CIE based colorspace is CMYK but how to do it when colorspace can be CMYKOG or RGB ... ?
    Regards,
    William

    You can certainly use Cos to create the ICC colorspace (or the alternate) just as you did for the DeviceN.
    Cos is just a wrapper over direct PDF objects – so read the PDF standard for what the objects you need are, then make the relevant calls.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 20 Oct 2011 03:03:46 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: how to use ICC based colorspace
    Re: how to use ICC based colorspace
    created by yokuju<http://forums.adobe.com/people/yokuju> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3981410#3981410

Maybe you are looking for

  • Can no longer open Excel files.

    Whenever I try to open an Excel file, I get the message "The file name or path name no longer exists or the file that you are trying to open is the same as another that is read only." This is the same for all .xls files. I even get it if I try to cre

  • How to import a book from iPhoto 9.2 to aperture 3

    Can I import Projects (Photobooks) from iPhoto 9.2 to Aperture 3? I have all my library on iPhoto and I would like to be able to transfer it completly to Aperture. Some advice would be great, since I am new to Aperture, Thanks!

  • Why do you need a credit card when no money due

    I recently was trying to add an older 3G IPad to my Verizon account.  Went through all the steps online and then went to check out.  We currently have 4 phones and 1 other IPad on this account.  Anyway everything is fine until I go to check out.  The

  • How to include unticked songs in shuffle?

    When I untick songs in my iTunes library, they are not included in shuffle anymore. I have for example a playlist with nothing but unticked songs. But when I start the shuffle function in that playlist, only one songs plays, and then the shuffle stop

  • Albums missing from Itunes

    Hi For some strange reason I am missing some albums from Itunes, these have def been imported into Itunes and they exist on the hard drive: \Documents and Settings\Mandeep Chana\My Documents\My Music\iTunes\iTunes Music How can I import the whole mus