Calling Tcode 'CC04' with material number as default value.

Hi
I want to call transaction 'CC04' with material number as default, i used below code but it is not woking i.e even if i pass material number to the field material , the value is not defaulted in the screen.
SET PARAMETER ID 'MAT' FIELD material.
CALL TRANSACTION 'CC04'.
can any one tell me why?

Thanks every one,
instead of wasting more time on this.
I wrote the below code to default the value on my screen.
START-OF-SELECTION.
CLEAR JTAB.
JTAB-PROGRAM = 'SAPLCPDMOBJECTBROWSER'.
JTAB-DYNPRO = '0100'.
JTAB-DYNBEGIN = 'X'.
APPEND JTAB.
CLEAR JTAB.
JTAB-FNAM = 'BDC_CURSOR'.
JTAB-FVAL = 'MARA-MATNR'.
APPEND JTAB.
CLEAR JTAB.
JTAB-FNAM = 'MARA-MATNR'.
JTAB-FVAL = '00000099900032'.
APPEND JTAB.
  CALL TRANSACTION 'CC04' USING jtab MODE 'A'.

Similar Messages

  • Report with material number and planned delivery time

    Is there any standard report with material number and planned delivery time ?

    Hi,
    I do not know any standard report. Please try SE16 + MARC...
    BR
    Csaba

  • REPORT WITH MATERIAL NUMBER

    Hello Everyone,
    I have successfully brought in data from multiple datasources into a multi provider. All 4 datasources have a common field and that is MATERIAL. The data in the multi provider is obviously not cleansed.
    What I would like to do is merge all data that corresponds to Material A combined in the query. All data for Material B combined so on and so forth.
    In simple words I want data by material number when i execute the query. So it will have to fetch all records for Material A and combine in one line or row. How can I do that?
    Thank you much
    Dave

    Hi Dave,
    Create a query on Multiprovider if you are sure that all the necessary data is retrieved into multiprovider and create a variable on Material if it is a characteristic. When you execute the query, Material variable values will be displayed and based on the selection of the material, you can have the necessary data. In the query, you need to take the order of the fields as mentioned below.
    Rows:
    --> Material
    --> Field1
    --> Field2...........
    Columns:
    --> KF1
    --> KF2............
    Hope this helps u...
    Regards,
    KK.

  • Planning in EC-PCA with material number

    We have a requirement to enter Revenue plan data in PCA by using Profit Center & Account number & Material number.    However, I do not see 'material' as a characteristic that can be added to the plan layout.    The only available field is 'Representative Material', which we do not want to use.     Does anybody know how to add the characteristic Material to a PCA Plan Layout?     Thank you.

    We have a similar requirement & found no way to plan utilising the material field MATNR.  As you indicated, representative material is offered.  We have elected to set up a 1:1 relationship of material to representative material for those materials we intend to plan and set the derivation rules as such.  This seems to be the only way to accomplish this in PCA.

  • Call Tcode S_alr_87013560 with input values when  execute the workitem

    hi all
    My requirment is to call report S_alr_87013560 with value in input fields ,when user execute the work item .
    this report needs input 1 - controlling area
    on next screen--- 2- Database profile .
    then project ID  and cost...
    and this is the first activity of workflow definition.
    Please advice me on the same.
    Thanks in advance.
    Deepanker Dwivedi

    Hello,
    Put whatever you need to do in a method of the BO associated with the workflow,
    and then create a task (TS....) that calls that method. Then the step in the
    workflow calls that task.
    To call a report as you describe I'd guess you'd need to do a SUBMIT with BDC data.
    regards
    Rick Bakker
    Hanabi Technology

  • Problem with OracleParameter that has default value

    I created Oracle procedure, that has parameters with default value (v_min_salary and v_max_salary)
    create or replace procedure JOB_EDIT (
    v_job_id in jobs.job_id%type,
    v_job_title in jobs.job_title%type,
    v_min_salary in jobs.min_salary%type:=null,
    v_max_salary in jobs.max_salary%type:=null
    is
    begin
    And when I run it from C# code I receive OracleException: "ORA-01008: not all variables bound" :
    OracleConnection conn = null;
    OracleTransaction tran=null;
    try {
    conn = new OracleConnection( ...here my connection string ... );
    string strCmd = "begin job_edit(:v_job_id, :v_job_title, :v_min_salary, :v_max_salary); end;";
    OracleCommand cmd = new OracleCommand(strCmd, conn);
    cmd.Parameters.Add(new OracleParameter(":v_job_id", OracleType.VarChar, 10)).Value = jobRow.JOB_ID;
    cmd.Parameters.Add(new OracleParameter(":v_job_title", OracleType.VarChar, 35)).Value = jobRow.JOB_TITLE;
    // When I worked with Sql Server I did not add parameters with deafult value
    // What I must to do with parameters v_min_salary and v_max_salary ?
    conn.Open();
    cmd.Transaction = tran = conn.BeginTransaction();
    cmd.ExecuteNonQuery();
    tran.Commit();
    catch (OracleException ex) {
    // here OracleException: "ORA-01008: not all variables bound"
    tran.Rollback();
    catch (Exception ex) {
    tran.Rollback();
    finally {
    conn.Close();
    What I must to do with parameters v_min_salary and v_max_salary ?

    For best chances of getting a reply, you may want to post it to ODP.NET forum (ODP.NET

  • Dynamic LOV with dates and selected default value

    Hello,
    I have a dynamic lov with dates. Query looks like this:
    select distinct concat(to_char(b.send_day_time,'YYYY.MM.DD HH24'),':00') display_value, to_char(b.send_day_time,'YYYY.MM.DD HH24') return_value
    from ...
    No I want to select a specific date as the default value. I put the following code for the default value:
    declare
    begin
    return to_char ('2008.02.19 10:00');
    end;
    But it doesn't work.The date (string) exists in the lov but it is not selected.
    Can someone tell me where the problem is?
    Thx in advance.
    Greetings,
    hamburger

    Hi hamburger,
    As return value you specified to_char(b.send_day_time,'YYYY.MM.DD HH24'),
    so your default value should be like to_char('2008.02.19 10'). Also pay attention to select the "Default Value Type".
    Hope this helps.
    chrissy

  • Problem with material number

    I created a material 20070730a1 using mm01 tcode. But in my program when i am trying to retrieve info for that material the select statement is unsuccessfully. But when i go for that material in mm03 i am able to view info for that material. Even i am using CONVERSION_EXIT_MATN1_INPUT FM to convert my materal number and i am using the return value from this function in my select statement. But still the select statement fails.
    code is as follows:
    FORM conversion_exit  USING pv_matnr       TYPE matnr
                       CHANGING pr_temp_matnr TYPE char18.
      CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
        EXPORTING
          input        = pv_matnr
        IMPORTING
          output       = pr_temp_matnr
        EXCEPTIONS                                              "#EC *
          length_error = 1
          OTHERS       = 2.
    ENDFORM.                    " conversion_exit
    pr_temp-matnr is send to an internal table i_cabn from there it used in select statement.
    FORM get_mat_type.
      IF NOT i_cabn  IS  INITIAL.  "check for initial
        SELECT matnr                                        "#EC CI_NOFIELD
               matkl
               pstat
          FROM mara
          INTO TABLE i_matn
           FOR ALL ENTRIES IN i_cabn
         WHERE  matnr             =  i_cabn-old_matnr
           AND   lvorm             <> c_x.
        IF sy-subrc = 0.
          SORT i_matn BY matnr.
        ENDIF.  " IF sy-subrc = 0
      ENDIF.    " IF NOT i_cabn  IS  INITIAL
    ENDFORM.                    " get_mat_type
    Any suggestion on this problem.
    Thanks

    got it

  • Calling from Spain with Online number

    I am thinking about getting an online number for the US, so that my friends can call me.  However, if I call them using my Spanish cell, will the number appear to them as my virtual number or my Spanish number?

    sabriniarogers wrote:
    I am thinking about getting an online number for the US, so that my friends can call me.  However, if I call them using my Spanish cell, will the number appear to them as my virtual number or my Spanish number?
    That depends.  If you use the Skype app on a mobile phone, and you have configured Skype to use a US Online Number as Caller ID when you call your friends, the US Online Number would appear on their phones.  If you use just the mobile phone with your Spanish mobile number to place the call, and not the Skype app, your Spanish number would appear on their phones (assuming you send that with your outgoing calls, and that information is passed over from your Spanish mobile network to the phones in the States). 
    When you purchase an Online Number, it is not automatically configured to be your Caller ID number when you call telephones from Skype.  You can set that up by logging into your Skype account using the "Account" link at the top of this web page once you have that number.  Go into the Caller ID settings, and select your US Online Number.  You won't have to go through any verification steps, but give it a few minutes for Skype's systems to update before you call telephones with that new setting.  Also make sure to log into the Skype program on a computer (not from a mobile phone or portable device like a tablet) and change the Privacy setting for Online Numbers to allow calls from anywhere.  Otherwise, your friends will encounter busy signals when they try to call that number.  It, like the Caller ID settings, are not automatically changed when you purchase an Online Number.
    Patrick
    Location/Ubicacion: Arizona USA
    Time Zone/Hora Local: UTC/GMT -7
    If this message has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.
    Si esto mensaje le ha ayudado, por favor haga clic en "Aceptar como solución". Si encuentra un mensaje útil, por favor "Da Kudos" al final del mensaje, por lo que esta información puede beneficiar a otros.
    I am not a Skype employee. No soy un empleado de Skype.

  • Easy Question, 'calling' a method with a number

    Here is a bit of code
    public class RollDice {
        public int x = 0;
        public RollDice(byte numberOfDice) {
            x = numberOfDice;
    }and another bit...
    public class RollDiceDemo {
        public static void main(String[] args) {
            RollDice currentRoll = new RollDice(7);
            System.out.println("Width of rectOne: " +
                    currentRoll.x);
    }So my issue is this, the code works if I change byte to int in 'public RollDice(byte numberOfDice) {' and I am guessing that is because ''7' defaults to an int in the call statement. How do I tell it to be a byte, I've tried RollDice(byte 7) with no luck.

    Encephalopathic wrote:
    MajorApus wrote:
    Because I am a newbie? What should I be doing instead?The class field "x" is an int. Why not use an int parameter in the constructor? What advantage is there to use a byte here?You realise now OP will just change x to be byte as well.

  • Forms: sql with bind variable as default value to form field?

    I am using a form as a way to show details of already entered rows in a table. A report passes an id parameter to the form to get it to show the right data. No insert or update is possible. (I am using a form rather than a report because I need to display BLOBs, something reports can't do.)
    I need to execute sql statements based on the passed id to fill certain fields in the form with data from other tables. For example: The table the form is based on includes a category_id, whereas I want to display the category name which resides in another table.
    How would I best achieve this?

    Hi,
    You do this in the additional plsql code section of the form by getting the value of the category_id from the session variables and then getting its name from the cateogory table and assigning it to the category name column.
    Sample Code
    declare
    catid number;
    catnm varchar2(30);
    blk varchar2(10) := 'DEFAULT';
    begin
    catid := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_CATEGORY_ID');
    select category_name
    into catnm
    from cat_table
    where category_id = cat_id;
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_CATEGORY_NAME',
    p_value => catnm
    end;
    Thanks,
    Sharmila

  • Batch - Material number - get charatersitic value

    Hi all,
    I have a process order number, materail number and batch number, I want to look if a particular characteristic is present in that batch and if yes, get that charateristic value. HOw can I do this. Please help.

    At what level is the classification defined, material/batch or is it at the order level? If it is at material batch level, you can use CLAF_CLASSIFICATION_OF_OBJECTS function module to get the values.
    Please close your other open posts once answered.

  • Material number suffixing with ! for some material in material master

    Hi Friends,
      We have uploaded  material master data with BDC . but for some of materials contain ! sign at the end of the material number. Means , at the 18th charecter ! is appearing. but it does not appear in mm03 while displaying. and even while finding it from MARA if we put material number   without ! sign then we can possible to get that material. and it does not allow us to crate material with same material number withought ! sign.
    But if while creating material if we put material with ! at the 18th charecter it creates material with ! sign but while searchig from MARA if you dont put ! sign with material number we can not  get that material as output and if we create other material without ! sign it allows to create the material.
    Please can you tell me what is the reson why ! is getting added at the end of material number ... do any1 of you have faced the same kind of situation and found for what reason it is coming....
    Thanks & Regards.
    Praja.

    Hi,
    This is due to config. In our case whenever we enter 8 digit number for Eg:
    12345678 material will be created as 1234.5678 a dot will appear after every 4 digits.
    But when we actually look at mara we wont find the dot (.) .
    We can do this by config by setting perfix and sufix to the material number. actually these characters will not be stored in DB.
    It will be shown in output when the function module CONV_EXIT_MATN1_OUTPUT runs.
    check config in OMSL transaction.
    In TMCNV table check field TEMPLATE it will have the template how the material number should be in our case its ____.____
    Your case might be ________________!
    Regards,
    Shanmugavel chandrasekaran.
    Edited by: shanmugavel chandrasekaran on Mar 22, 2010 10:58 AM

  • Validation on Material number

    Hi , I am retrieving material numbers from a excel sheet into an internal table. Now I want to check this internal table against MARA table to see if the entered material numbers are valid or not. How to achieve this ? I mean what is the most efficient way.
    Also , if I enter a value in a screen input field how can I check its validity with material number sin MARA
    Thank you .

    Hello Krish,
    How you know which material number is wrong one unless if you use error log table.
    See the below logic :
    You can write simple logic :
    Assume that your internal table is itab.
    error log internal table
    data : begin of itab1 occurs 0,
              matnr(18) type c,
              text(50) type c,
             end of itab1.
    loop at itab.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
    EXPORTING
    INPUT = ITAB-MATNR
    IMPORTING
    OUTPUT = ITAB-MATNR
    EXCEPTIONS
    LENGTH_ERROR = 1
    OTHERS = 2.
    select single * from mara into mara
                                     where matnr = itab-matnr.
    if sy-subrc ne 0.
    itab1-matnr = itab-matnr.
    itab1-text = 'Material does not exits'.
    append itab1
    clear itab1.
    endif.
    endloop.
    Thanks
    Seshu

  • Material Number Truncated in ALV to Excel Download

    Hi Guru,
    I have a ALV program report. It has about 18 columns, but for some strange reason, when we download this report to an ALV the 3rd column which host the material number as the last digit missing/truncated.
    For example if we have a material number in SAP ALV Grid as 1234567, when we download this the excel, what we get in excel is 123456. with the last number missing.
    What is the best solution to fix this issue.
    Thanks for you help in advance.

    Hi Keshav,
    Previously I faced the same situation, like in ALV grid I was displaying the material nos with output length as 15. Since in the Grid display you can readjust the columns, So after displaying we just expanded in the grid and try to download the same in excel. But at that time the ALV was downloading with material number field length as 15 ( What I set in my field catalog). Even when I saw the print priview I saw only the length it is showing as 15.  After changing the output length as 18 in field cat  I got the correct download.
    (Here I am assuming that the question is raised for  ALV grid display since no where it is mentioned the type of ALV).
    Sorry it was mentioned in the question itself
    Regards
    Shiba
    Edited by: Shiba Prasad Dutta on Feb 22, 2010 2:41 PM

Maybe you are looking for

  • Delete an item listed in Finder underneath places

    I have a dmg file listed in my "places". When i click on it, it tells me it can't be used because it is in the trash and to drag it out. I don't want to use it, I want to delete from my "places". Do i just need to drag it to the desktop and then clic

  • Data Type enhancement Query.

    Hi All , I have a query regarding Data type enhancement . We can create a Data Type enhancement based on a standrd Data Type and give a new name to this DataTypeEnhancement (DTE_Test). This is clear . My question is how do we actually use this newly

  • LRT224 - Set public IP on router

    Hello, After having problems with a Draytek dual Wan router, I have purchased the Linksys LRT224 to test as a replacement. The router is set up and working, but I cannot work out how to set the Public static IP on's the router. I have a range of 5 pu

  • Video chat Question

    I have one computer with a camera, and another without. Is it possible for one computer to see video, and other just to have audio? Also, sometimes I can do an audio chat and other times it gives me an error. Can anyone please shed some light on this

  • CR2s come into Lightroom with pink & purple color block distortion

    Hopefully I am not posting after someone has already determined an answer, but I did not see one.  Unlike what is happening in this discussion (http://forums.adobe.com/thread/356898), my cr2 is coming up distorted on only one of my computers running