How to set 'Material Master' tab as default in standard transaction CG54?

Hi All
I am having a requirement to call the transaction CG54 from a custom program. On calling the transaction, I need to put some default values to the input fields and the default tab selected should be 'Material Master'. I am able to default input fields using BDC Transaction call. Can anybody guide me how to set Material Master tab as the default tab selected?
Thanks in advance
Rinzy Deena Mathews

Hi All
Solved the issue by myself.
Initialization of tab in transaction CG54 is based on the values in the standard table TCGSGP - EHS: Search parameter (reproduction from SET/GET memory).
Calling of the transaction CG54, with default values and parameters can be done with the help of following standard function module:
*-- Types
  TYPES : BEGIN OF t_obj_tab.
          INCLUDE STRUCTURE rcgapplobj.
  TYPES : END OF t_obj_tab.
  TYPES : tt_obj_tab  TYPE t_obj_tab OCCURS 20.
  TYPES: BEGIN OF t_zplm02,
           sbgvid TYPE zppr_de_sbgvid,
         END OF t_zplm02.
*-- Internal Tables
  DATA: li_obj_tab    TYPE tt_obj_tab WITH HEADER LINE,
        li_report     LIKE rcgstdrecn OCCURS 20 WITH HEADER LINE,
        li_variant    LIKE rcgstdrecn OCCURS 20 WITH HEADER LINE,
        li_subid_tab  TYPE espre_subid_rep_tab_type WITH HEADER LINE,
        li_report_m   LIKE rcgstdrecn OCCURS 20 WITH HEADER LINE,
        li_variant_m  LIKE rcgstdrecn OCCURS 20 WITH HEADER LINE,
        li_subid_tab_m TYPE espre_subid_rep_tab_type WITH HEADER LINE,
        li_zplm02     TYPE STANDARD TABLE OF t_zplm02.
*-- Structures
  DATA: ls_addinf     TYPE rcgaddinf,
        ls_rcgradmsel TYPE rcgradmsel,
        lw_zplm02     TYPE t_zplm02.
*-- Variables
  DATA: lv_trtype     TYPE rcgdialctr-trtype VALUE 'D',
        lv_actype     TYPE rcgdialctr-actype VALUE 'D',
        lv_viewappl   TYPE tcgl3-repappl     VALUE 'MATMASTER',
        lv_sel_valdat TYPE rcgradmsel-valdat,
        lv_sel_langu  TYPE rcgradmsel-langu,
        lv_ucomm      TYPE syucomm,
        lw_gen        TYPE char10,
        lv_flag       TYPE esp1_boolean,
        lv_werks      TYPE werks_d,
        lv_bsbgvid    TYPE zppr_de_bsbgvid.
*-- Parameters
  ls_addinf-aennr      = sy-datum.
  ls_addinf-valdat     = sy-datum.
  ls_rcgradmsel-sbgvid = iw_gen.
  ls_rcgradmsel-matnr  = p_matnr.
  ls_rcgradmsel-namcat = 'MATNR'.
  ls_rcgradmsel-reprefflg = abap_true.
  ls_rcgradmsel-numcat = 'NUM'.
*-- Application Object
  li_obj_tab-repappl = 'MATMASTER'.
  li_obj_tab-objectkey = p_matnr.
  APPEND li_obj_tab.
*-- Evaluate selection screen and fill keytab
  CALL FUNCTION 'C1G0_KEYTAB_FILL_FROM_RADMSEL'
    EXPORTING
      i_radmsel             = ls_rcgradmsel
      i_valdat              = ls_addinf-valdat
      i_actype              = lv_actype
      i_flg_popup_no_param  = abap_true
    IMPORTING
      e_flg_cancel          = lv_flag
    TABLES
      i_applobj_tab         = li_obj_tab
      e_keytab_report       = li_report
      e_keytab_variant      = li_variant
      e_subid_refreport_tab = li_subid_tab
    EXCEPTIONS
      OTHERS                = 1.
*-- Initilize Report Header Buffer
    CALL FUNCTION 'C1AP_ESTDH_BUF_INIT'
      EXPORTING
        i_aennr  = ls_addinf-aennr
        i_valdat = ls_addinf-valdat.
*-- Parameters
    ls_addinf-aennr      = sy-datum.
    ls_addinf-valdat     = sy-datum.
    ls_rcgradmsel-sbgvid = iw_gen.
    ls_rcgradmsel-matnr  = p_matnr.
    ls_rcgradmsel-namcat = 'MATNR'.
    ls_rcgradmsel-reprefflg = abap_true.
    ls_rcgradmsel-numcat = 'NUM'.
*-- Application Object
    li_obj_tab-repappl = 'MATMASTER'.
    li_obj_tab-objectkey = p_matnr.
    APPEND li_obj_tab.
*-- Initial report block tree of information
    CALL FUNCTION 'C1G2_ENTRY_INQUIERY'
      EXPORTING
        i_trtype              = lv_trtype
        i_actype              = lv_actype
        i_addinf              = ls_addinf
        i_viewappl            = lv_viewappl
        i_sel_valdat          = lv_sel_valdat
        i_sel_langu           = lv_sel_langu
        i_rcgradmsel          = ls_rcgradmsel
      IMPORTING
        e_okcode              = lv_ucomm
      TABLES
        i_keytab_report       = li_report
        i_keytab_variant      = li_variant
        i_subid_refreport_tab = li_subid_tab
        i_applobj_tab         = li_obj_tab.
With Regards
Rinzy Deena Mathews.

Similar Messages

  • How to get Material Master Moving average price into Purchase Order

    Hi,
    How to get Material master moving average price into purchase order instead of Purchase Info record.
    Thanks,
    Sridhar

    Hi,
            I  cannot understand whether it is necessary .
           How about as following step?
                 1. create Purcahse requisition
                                Price come form moving average price in material master.
                 2. Create Purchase order reference Purchase  requisition
                                There is a setting  from the unit price of P/R onto the unit price of P/O.
      Regards,
         Gaito

  • How to set current year,month as default value in combo box

    hi,  im newbie of xcelsius user
    i realize  that hv a issue that display combo box base on year & month
    let said
    <b><u>step 1</u></b>
    I create excel data like this
    <b><u>year___ </u>  </b>    |     <u><b>month_   </b></u> |     <u><b>Product</b></u> |     <u><b>revenue</b></u>
    02-04-09 |     02-04-09 |       a |     $4,154
    03-04-09 |     03-04-09 |       b |     $6,813
    04-05-09 |     04-05-09 |       a |     $9,875
    05-06-09 |     05-06-09 |       b |     $6,813
    06-04-10 |     06-04-10 |       a |     $6,813
    07-04-10 |     07-04-10 |       b |     $9,875
    08-06-10 |     08-06-10 |       a |     $9,875
    22-06-10 |     22-06-10 |       b |     $6,813
    <u><b>Step2</b></u>
    Then i go format cell to format/custom date to year & month
    Eg1: Year u2013>  02-04-09  convert to u2018YYYYu2019 (2009)
    Eg2: Month u2013>  02-04-09  convert to u2018mmmmu2019 (April)
    So output like this
    <u><b>year</b></u> |     <u><b>month</b></u> |     <u><b>Product</b></u> |     <u><b>revenue </b></u>
    2009 |     April |     a |     $4,154
    2009 |     April |     b |     $6,813
    2009 |     May |     a |     $9,875
    2009 |     June |     b |     $6,813
    2010 |     April |     a |     $6,813
    2010 |     April |     b |      $9,875
    2010 |     June |     a |     $9,875
    2010 |     June |     b |     $6,813
    But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
    But Actual display the Year  in combo box is duplicated :'(
    so any solution ? and then only how to set current year & month as default value  :'(
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
    Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AM

    hi,
    your created  data
    step 1
    I create excel data like this
    year___ | month_ | Product | revenue
    02-04-09 | 02-04-09 | a | $4,154
    03-04-09 | 03-04-09 | b | $6,813
    04-05-09 | 04-05-09 | a | $9,875
    05-06-09 | 05-06-09 | b | $6,813
    06-04-10 | 06-04-10 | a | $6,813
    07-04-10 | 07-04-10 | b | $9,875
    08-06-10 | 08-06-10 | a | $9,875
    22-06-10 | 22-06-10 | b | $6,813
    In this, year and month both are same data, make the diffent data like year  2009, 2010  And month Jan, Feb, March, ...Etc 
    and also one more check you formulas on month and year, select correct source data, destination data  for compoonent..
    OR
    from above, to create a date column and convert  date-->year, date--> month and Explore it.
    All the best,
    Praveen

  • How to Create material master workflow

    Hi All,
    Can anybody tell me how to create material master workflow?
    i need to customize the workitem  for creating data in different views in MM01 transaction with restriction to particular user.
    Regards,
    Priti

    Hi,
    This link is to  display a material.My requirement is to create a workflow which will allow a responsible person to enter data for specific department data e.g Purchase,Accounting etc.Initially anyone can create data using basic data1 and basic data2 views.After this my workflow will be triggered and it will go to next person who is responsible to enter Purchase data and then Accounting data.
    Plz help me to create different views with respect to person.
    Thanks in advance.

  • How to set custom master page for social/sites.aspx in sharepoint 2013

    How to set custom master page for social/sites.aspx in sharepoint 2013.?
    File path is
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\FEATURES\SocialDataStore\SocialDataStoreList\sites.aspx
    Thanks in advance

    Hi,
    You could open the sites.aspx in Notepad or SharePoint designer, and set the master page to your own master page directly via editing:
    <%@ Page language="C#" MasterPageFile="~masterurl/custom.master"      Inherits="Microsoft.SharePoint.Portal.WebControls.FollowedContentWebPartPage,Microsoft.SharePoint.Portal,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c"
    %>
    Regards,
    Rebecca Tu
    TechNet Community Support

  • HT204380 How to set my iPad as a default device while my iPhone and iPad share a same email address?

    How to set my iPad as a default device while my iPhone and iPad share a same email address?

    Shiv1611 wrote:
    Though i am still gona try using the same Itunes. Will same Itunes support two apple ids.
    That depends on what you mean. If you mean two iTunes Store accounts, no. Only one Apple ID can be logged into the iTunes Store at a time and if automatic download, iTunes Match or re-downloading of content is used the ID can not be changed for 90 days.
    Shiv1611 wrote:
    So i guess if i solve my goof up on creating different apple IDs and setting her phone as a new one .. according to you that shall do the trick.
    But i have a question here in that case what happens to all the applications that have been purchased on my Id ? Wont i be needing them to be purchased/downloaded again in the new id?
    If you previously had been using the same Apple ID for iTunes Store purchases for both of you there is no reason to change what you've been doing. If this is your wife's first iPhone, and you want to share the iTunes Store account just don't use the new Apple ID you created. As long as there are no purchases on it there's nothing to worry about.

  • How to set Bluetooth headset as a default answering device in iphone?

    How to set Bluetooth headset as a default answering device in iphone?

    All you need is to pair it.
    http://support.apple.com/kb/TS2225

  • How to set custmer master block for posting & how to set the status .....

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. Use an appropriate subject in your message thread. >
    Hi ...
    How to set custmer master blocked for posting & how to set the status has deleted. please provide the steps for the above two actions.
    thanks

    Hi,
    U can use T-code FD05 for Blocking the customer and
    T-code FD06 in order to set for deletion,
    Assign Points if useful,
    Regards,

  • How to extend material master product Hierarchy

    Hi,
    How to extend material master product Hierarchy
    Define Product Hierarchies (SAP Library - Material Master)
    In SAP help, the procedure is given, But in procedure we need to change standard structures and data elements.
    Need to know, This is only the possibilty?
    Need to change structure and data elements by Access key only or there is some other way.
    Regards
    Sukumar

    Hi,
    Use t.code:MM01 and in Copy From Field Give Material No ( u wan to copy) and in Next Screen Give Extending Plant & Storage Location and in Copy From Fields give Reference Plant & Storage Location.
    For more check the links for material extension.
    http://www.copacustomhelp.state.pa.us/infopak/nav/procurement/pr%20master%20data/file1434/index.htm
    http://www.copacustomhelp.state.pa.us/infopak/standard/fastpaths/mm01_content.htm
    Regards,
    Biju K

  • How to set Material Ledger as Productive

    In CKM9 ---> I am getting message as --> Material Ledger Not Yet Productive
    how to set Material Ledger as Productive
    Please help

    IMG->Controlling->Product Cost Controlling->Actual Costing/Material Ledger-> Activate Valuation Areas for Material Ledger
    In this step, you activate the material ledger for valuation areas - Before activating material ledger, check the additional currencies defined in the Co Cd.

  • How to set InDesign CS5 as the default in the system having InDesign CS4 has the default ?

    How to set InDesign CS5 as the default .indd application when you have InDesign CS4 and CS5 installed and InDesign CS4 is the current default (InDesign CS4 was installed after CS5 installation)

    Thanks, but I already tried it at first but it is not the effective method.
    I think its because of the this reason :
    Both - InDesign CS4 and InDesign CS5 have their application/program/exe named as "indesign.exe".
    Installation of either InDesign CS4 or InDesign CS5, sets a Windows default path for the "indesign.exe". In this case, since InDesign CS4 was installed later (after InDesign CS5 was already installed), the "indesign.exe" which was directing InDesign CS5's "indesign.exe" was replaced by InDesign CS4's "indesign.exe".
    But after long google and search through regedit, I've got the solution :
    Locate HKEY_CLASSES_ROOT\InDesign.Document\Shell\Open\Command in regedit
    Change the value of (Default) attribute to "C:\Program Files (x86)\Adobe\Adobe InDesign CS5.5\InDesign.exe" "%1"     // Include the quotes
    Message was edited by: Vidit Kothari

  • Material Master Tab Security

    I have a requirement to restrict access to material master by Material Master tabs. Purchasing, for example, should only see the Purchasing tab, Customer Service - Sales Tabs. Is it possible with any kind of standard functionality/configuration?
    Thanks,
    Sergiy

    I guess access to individual tabs are grouped by departments within M_MATE_STA object. This will work.
    Thank you,
    Sergiy

  • HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?

    HI,
    HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
    thanks,
    samba.

    By selection screen, what do you mean?   There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component?  Are you wanting to call a standard transaction via ITS - SAPGUI for HTML?  Please provide more details to your question.

  • How to Set "RETAIN" provisioning action as default???

    Hi All,
    I would like to  keep "RETAIN" provisioning action as default in ARQ while "adding" a role.
    Actually, there is one configuration parameter "2045" which will make it possible. But this is ONLY applicable to the situation where a role is selected from existing assignment by clicking on "Existing Assignment" button.
    As soon as a role is selected from the existing assignment automatically the provisioning actions is set to "RETAIN" (due to the config. parameter 2045).
    But what I want is, whenever a user adds a role to a user in access request form, the default provisioning action should be set to "RETAIN". I could not find any suitable configuration parameter for this.
    Has anyone set this before? Or does any one know how to set it?
    Please advise.
    Regards,
    Faisal

    Hi Alessanrdo,
    Thanks for your reply.
    Actually the motive behing this option is to cover the "loop hole" of ARQ application. If you notice, we can "keep" adding the same role which is already assigned with different validity dates. ARQ does not control this!
    Eventually, what happens that in the back end system, the user master record is overwhelmed with the same role entry with different validity dates!
    Unfortunately, application does not have any control over this. Therefore, at least making "RETAIN" as the default provisioning action, we can have a "sort" of control over this. What happens is, if I add a role which is already assigned to a user and change the validity dates, there will not be any new entry in the back end system with the same role.
    Hope this will help you understand the requirement and advise me.
    Regards,
    Faisal

  • How to set material in ME51N

    Hi All,
    we have created one customzied screen, in this screen we are entering material no. based on this we are getting stock details for this material.
    here requriement is once i double click on material , this materail has to show in ME51N item level.
    through set parameter id we are able to link to MM02 & MM03 but set  parameter id is working for me51n ,please tell me how to display material in ME51N.
    Thanks in advance.

    Hi,
    Please check the below link. It might help you.
    http://www.slps.org/slps_processes/2/Master%20Document%20Link/purchasing/PurchasingDocsP001_P019/PUR-006%20Create%20A%20Purchase%20Requisition%20(FO)%20-%20ME51N.pdf
    with regards,
    Mamta

Maybe you are looking for

  • Erro:No information was found while confirmation of the order through CO11N

    Dear all, Iam getting Below this Error (Product Costing) at the time of Order Confirmation Through transaction code CO11N Here specifying the system message No information was found Message no. GU444 Diagnosis The system could not find the necessary

  • Moving avg price is negative

    Hi, I am trying to post invoice for a material and PO but i am getting error message Moving avg price for the material is negative. Please let me know your views on this. Helpfull answers will be rewarded. thanks Suresh

  • Sun access Manager session failover

    Hi, I am trying to install Sun Access Manager (2005Q1) with Session failover. I have hardware load balancer under which i have configuring Access Manager on two seperate boxes. For session failover i have configured Berkelay database on both system b

  • Korean messages broken into multiple lines

    When I send messages to other iOS running devices from my Mac with Messages beta, the message I typed in non-Roman characters (Korean) will be broken into multiple lines word-by-word quite frequently, Also, there seems to be random punctuation added

  • Data Loss With Inactivity On Phone

    When users are using a phone to fill out the form, if there is a moment of inactivity and the phone goes to sleep, the data from the phone is lost, when the phone wakes up. Then the user has to start over again. Is there a way to fix this? Thanks for