How to ceate RefPlant:consumption data use BAPI_MATERIAL_SAVEDATA?

Hi all.
I need create material master data like via MM01.
I call BAPI: BAPI_MATERIAL_SAVEDATA to create data.
I could NOT found the relevant fields in parameters list for ‘RefPlant:consumption’(Reference plant for consumption) in Forecasting View.
Is there any FM or BAPI to create this parameter?
I check the logic in program R_TRANSACT_PROD_VERS for tcode C223, it seems that update by openSQL.
So confused
Thanks and Regards.
Ryan Chen.

Hi,
  Check the  BAPI_MATERIAL_SAVEDATA ,in the BAPI  is there a table parameter EXTENSIONIN ?
which you can use to pass the values for user defined fields to the BAPI..
Regards
Kiran Sure

Similar Messages

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • How to migrate pricing condition data using lsmw

    Hello All,
                 can any one explain how to migrate pricing condition data using lsmw.
    the scenario is we are trying to extend the pricing conditions from one sales area to other sales area on a combination of sales organization, distribution channel and division.

    Hi Sreedhar Kodali
    Pricing conditions can be extended with the following options:-
    1)  Customer / material with release status
    2)  Sales Org / Dist. Channel / Cust group / Material
    3)  Price List category / Currency / material with release status
    4)  Material with release status
    Assuming that your pricing condition in one sales area is different to another, first you have to create LSMW recording to extend the sales area and then pricing conditions can be uploaded accordingly.
    Thanks
    G. Lakshmipathi

  • How can I validate a date using sql

    How can I validate a date using sql or pl/sql
    select to_date('01/01/2009','mm/dd/yyyy') from dual this is a good date
    but how can I check for a bad date
    select to_date('0a/01/2009','mm/dd/yyyy') from dual
    Howard

    William Robertson wrote:
    It'll be complicated in pure SQL, as you'll have to parse out day, month and year and then validate the day against the month and year bearing in mind the rules for leap years. It would be simpler to write a PL/SQL function and call that.Nah, not that complicated, you just need to generate a calender to validate against.
    SQL> ed
    Wrote file afiedt.buf
      1  with yrs as (select rownum-1 as yr from dual connect by rownum <= 100)
      2      ,mnth as (select rownum as mn, case when rownum in (4,6,9,11) then 30
      3                            when rownum = 2 then 28
      4                       else 31
      5                       end as dy
      6                from dual
      7                connect by rownum <= 12)
      8      ,cent as (select (rownum-1) as cen from dual connect by rownum <= 21)
      9      ,cal as (select cen, yr, mn,
    10                      case when ((yr = 0 and mod(cen,400) = 0)
    11                             or (mod(yr,4) = 0 and yr > 0))
    12                            and mn = 2 then dy+1
    13                      else dy
    14                      end as dy
    15               from cent, yrs, mnth)
    16  --
    17      ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    18  --
    19  select case when cal.cen is null then 'Invalid Date'
    20              when not regexp_like(dt,'^[0-9]{1,2}[\/.-_][0-9]{1,2}[\/.-_][0-9]{4}$') then 'Invalid Date'
    21         else dt
    22         end as dt
    23  from dt left outer join
    24               cal on (to_number(regexp_substr(dt,'[0-9]+')) between 1 and cal.dy
    25                   and to_number(regexp_substr(dt,'[0-9]+',1,2)) = cal.mn
    26                   and floor(to_number(regexp_substr(dt,'[0-9]+',1,3))/100) = cal.cen
    27*                  and to_number(substr(regexp_substr(dt,'[0-9]+',1,3),-2)) = cal.yr)
    SQL> /
    Enter value for date_dd_mm_yyyy: a1/02/2008
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select 'a1/02/2008' as dt from dual)
    DT
    Invalid Date
    SQL> /
    Enter value for date_dd_mm_yyyy: 01/02/2008
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '01/02/2008' as dt from dual)
    DT
    01/02/2008
    SQL> /
    Enter value for date_dd_mm_yyyy: 29/02/2008
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '29/02/2008' as dt from dual)
    DT
    29/02/2008
    SQL> /
    Enter value for date_dd_mm_yyyy: 30/02/2008
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '30/02/2008' as dt from dual)
    DT
    Invalid Date
    SQL> /
    Enter value for date_dd_mm_yyyy: 29/02/2009
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '29/02/2009' as dt from dual)
    DT
    Invalid Date
    SQL> /
    Enter value for date_dd_mm_yyyy: 28/02/2009
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '28/02/2009' as dt from dual)
    DT
    28/02/2009
    SQL> /
    Enter value for date_dd_mm_yyyy: 0a/01/2009
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '0a/01/2009' as dt from dual)
    DT
    Invalid Date
    SQL> /
    Enter value for date_dd_mm_yyyy: 00/01/2009
    old  17:     ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
    new  17:     ,dt as (select '00/01/2009' as dt from dual)
    DT
    Invalid Date
    SQL>

  • How to track repeting record data using BAM in biztalk

    Hi All,
      am new bam, How can How to track repeting record data using BAM in biztalk,please find the below input record
    <ns0:Employee xmlns:ns0="http://BizTalk_.Employee.Schemas.emp_In">
      <Emp>
        <id>122</id>
        <sal>222222222</sal>
        <name>.srinu</name>
        <dept>java</dept>
      </Emp>
       <Emp>
        <id>666</id>
        <sal>44444444</sal>
        <name>.srinu</name>
        <dept>java</dept>
      </Emp>
       <Emp>
        <id>333</id>
        <sal>7777</sal>
        <name>.biztalk</name>
        <dept>C#</dept>
      </Emp>
    </ns0:Invoice>
    am tried using TPE but its showing all the 3 rows as NULL  in bam primary import database.
    So please let know how can i achieve above issue.
    Regards,
    srinivas

    Hi Srinivas,
    Using TPE you cannot process repeating records. It doesn’t allow you to loop through your InvoiceDetails (repeating record), hence it shows null in tracked record. This
    is one of the limitations when you use TPE.
    This can be done using BAM API. If you use Orchestration or by writing a custom pipeline component you can use BAM API where you have the flexibility to loop through the
    repeating record and insert each InvoiceDetails node as a record in your BAM activity. BAM API is the only option to track repeating items inside a message as separate activity instances.
    Refer this MSDN article for more info:http://msdn.microsoft.com/en-us/library/aa559527.aspx
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How can we store xml data using jsp

    hai,
    Can anyone please explain in brief how to store xml data using jsp. Also if possible please explain by specifying the code.
    regards,
    Praveen Vinnakota.

    [email protected] wrote:
    how can we publish Labview data using the web?
    You could use shared variables and publish them to the network or use data sockets.
    Kudos always welcome for helpful posts

  • How can we publish Labview data using the web

    how can we publish Labview data using the web?
    Dr. Eugene Berman, Moran Kamilyan and Ravit Bar

    [email protected] wrote:
    how can we publish Labview data using the web?
    You could use shared variables and publish them to the network or use data sockets.
    Kudos always welcome for helpful posts

  • How to send te XML data using HTTPS post call & receiving response in ML

    ur present design does the HTTP post for XML data using PL/SQL stored procedure call to a Java program embedded in Oracle database as Oracle Java Stored procedure. The limitation with this is that we are able to do HTTP post; but with HTTPS post; we are not able to achieve because of certificates are not installed on Oracle database.
    we fiond that the certificates need to be installed on Oracle apps server; not on database server. As we have to go ultimately with HTTPS post in Production environment; we are planning to shift this part of program(sending XML through HTTPS post call & receiving response in middle layer-Apps server in this case).
    how i can do this plz give some solution

    If you can make the source app to an HTTP Post to the Oracle XML DB repository, and POST contains a schema based XML document you can use a trigger on the default table to validate the XML that is posted. The return message would need to be managed using a database trigger. You could raise an HTTP error which the source App would trap....

  • How to fill or bind data using Value Node in Tree Node

    Hi Gurus,
    Can anybody help me on how to fill data or bind data using Value Node in Tree Node View. I know how to create Tree Node but not able to show value on the UI in Tree View.
    Can u please let if anybody has done it?
    Thanks in advance.
    Madhusudan

    continued...
    TRY.
              lv_child = me->node_factory->get_proxy(
                        iv_bo = lv_value_node
                        iv_parent_proxy = me
                        iv_proxy_type = 'ZL_CLASS_CN02' ).
              lv_child->is_leaf = 'X'.
              APPEND lv_child TO rt_children.
            CATCH cx_sy_move_cast_error cx_sy_ref_is_initial.
          ENDTRY.
      In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to build table and refresh in do-prepare_output of IMPL class.In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to buid table and refresh in do-prepare_output of IMPL class.
    ztyped_context->resultlist->build_table( ).
      IF ztyped_context->resultlist->node_tab IS INITIAL.
        ztyped_context->resultlist->refresh( ).
      ENDIF.
    Also the EH_ONEXPAND has to be implemented and event handled in DO_HANDLE_EVENT. But this expand event has to be delegated to context node directly as CL_BSP_WD_CONTEXT_NODE_TREE will already have the implementation.
    ztyped_context->resultlist->expand_node( lv_event->row_key ).
    Where in result list is the node ZL_CLASS_CN00.
    After typing the whole content , i found this blog :). There are few things i have written more that in the blog.  /people/poonam.assudani/blog/2009/06/24/create-a-tree-view-display-in-crm-web-ui
    Regards,
    Karthik

  • How to insert the system date  using PreparedStatement

    How do I insert system date(from Orcale database) using
    PreparedStatement. I am aware that that oracle has date
    function 'sysdate' to retrieve the database current date.
    How Do i use that in the following syntax?
    Alertnative 1:
    String inssql =
    "insert into emp (empid, name, dept, updateDate) "+
    " values (?, ?, ?, ?)";
    PreparedStatement pstmt = conn.prepareStatement(inssql);
    pstmt.setInt(1, 123456);
    pstmt.setString(2, "Bougnon Kipre");
    pstmt.setString(3, "Rare Species Depatement" );
    pstmt.setDate(4, sysdate) // if this okay
    pstmt.executeUpdate();
    Alternative 2:
    String inssql =
    "insert into emp (empid, name, dept, updateDate) "+
    " values (?, ?, ?, sysdate)";
    PreparedStatement pstmt = conn.prepareStatement(inssql);
    pstmt.setInt(1, 123456);
    pstmt.setString(2, "Bougnon Kipre");
    pstmt.setString(3, "Rare Species Depatement" );
    pstmt.executeUpdate();

    Hi,
    The second alternative will be the best way.
    Since the alternative 1 won't work. sysdate cannot be accessed
    from java as a variable. Either use alternative two or create a
    java.sql.Date and insert it.
    Regards
    Elango

  • How many bytes does a DATE use?

    Having trouble finding this in the 10g documentation. How many bytes does a date data type use?
    thanks.

    Take a look to the online documentation linked below :
    Oracle® Database SQL Reference
    10g Release 2 (10.2)
    Part Number B14200-02
    Oracle Built-in Datatypes
    expecially code datatype 12.
    Valid date range from January 1, 4712 BC to December 31, 9999 AD. The default format is determined explicitly by the NLS_DATE_FORMAT parameter or implicitly by the NLS_TERRITORY parameter. The size is fixed at 7 bytes. This datatype contains the datetime fields YEAR, MONTH, DAY, HOUR, MINUTE, and SECOND. It does not have fractional seconds or a time zone.
    Nicolas.

  • How to get current navigation data using C#

    Hi,
    Please help me to get the current navigation data using c#.
    In detail, In my sharepoint 2013 site, if i navigate to the Site Actions -> Settings ->Navigation -> Current Naviation and add some link it should show on my web part.
    I am trying to create  a new web part and this web part should show the content of Current Navigation (under settings).
    Thanks in advance.

    Hi Lakshmanan,
    Thanks for your reply.
    I need more CSS customization so i am looking for C# code and i got the code. i am getting all the subsites but child nodes of subsites are showing zero even though the subsites having another subsites and pages.
    I have tried the below scranario,
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.navigation.spnavigation.quicklaunch.aspx
    Please help me on this. This is very urgent for me.
    Thanks a ton.

  • How to encrypt excel file data using triple DES algorithm in oracle

    Hi,
    I would like to know the process or script to encrypt/decrypt the excel file data using triple DES algorithm in oracle.

    I'm not quite sure your requirement.... do you mean when uploading files to be stored in the database ?

  • How to record AP Extreme data used (due to new DSL caps)?

    At&t DSL now implementing data caps. Using an Airport Extreme over ethernet & wifi to three Mac's and want to keep track of data used.

    At&t says that I now have a 150GB per mo. cap on my DSL service. I use the Airport extreme to distribute the DSL data to my computers and Roku box. I can use software like 'surplusmeter' per machine to give me an idea of data use, but not for the Roku & 'guest' laptops. I have seen reference to terminal commands combine with .tar downloads to garner a total data log per given time period, but was hoping for something integrated with the APe.
    Or, maybe a different router.

  • How to display table field data using checkbox

    Dear sir,
              I have created PR using ME51N.  Our PR datas in EKPO table. 
              I have created select-option with prdat and Checkbox for to view PR open or closed status.
              I want check PR status details from date to date using check box.
             I have created the following code, but i will not generate output
    DATA: BEGIN OF leban OCCURS 0.
            INCLUDE STRUCTURE ekpo.
    DATA END OF leban.
    DATA new(1).
    SELECT-OPTIONS ldat FOR sy-datum. "NO-DISPLAY.
    parameters lopen like new AS CHECKBOX USER-COMMAND opn.
    parameters lclose like new as checkbox user-command cls.
    at selection-screen.
    if ldat is initial.
       message 'Enter a value' type 'W'.
    endif.
    case sy-ucomm.
    when 'opn'.
       perform getpr.
       perform findopenpr  tables leban.
    endcase.
    form getpr.
    select * from ekpo into leban where PRDAT in ldat.
    append leban.
    endselect.
    endform.
    form findopenpr tables ekpo.
        IF LOPEN = 'X'.
           select single * from ekpo into leban where PRDAT IN LDAT AND banfn = lopen.
           SORT leban BY bnfpo.
           CLEAR leban.
           if not sy-subrc = 0.
             message  'PR OPEN' type 'S'.
           ENDIF.
           WRITE: / LEBAN-BANFN.
        ENDIF.
    endform.
    With Regards,
    Baskaran

    Hi,
    Try this way,
    You shouldnt be writing two select statements into the same internal table. Also i dont see any use of perform getpr. so remove that and try
    DATA: BEGIN OF leban OCCURS 0.
    INCLUDE STRUCTURE ekpo.
    DATA END OF leban.
    DATA: BEGIN OF leban1 OCCURS 0.
    INCLUDE STRUCTURE ekpo.
    DATA END OF leban1.
    DATA new(1).
    SELECT-OPTIONS ldat FOR sy-datum. "NO-DISPLAY.
    parameters lopen like new AS CHECKBOX USER-COMMAND opn.
    parameters lclose like new as checkbox user-command cls.
    at selection-screen.
    if ldat is initial.
    message 'Enter a value' type 'W'.
    endif.
    IF LOPEN = 'X'.
    select single * from ekpo into leban where PRDAT IN LDAT AND banfn = lopen.
    if sy-subrc = 0.
    message 'PR OPEN' type 'S'.
    ENDIF.
    WRITE: / LEBAN-BANFN.
    endif.
    if LCLOSE = 'X'.
    select single * from ekpo into leban1 where PRDAT IN LDAT AND banfn eq space.
    if sy-subrc = 0.
    message 'PR CLOSE' type 'S'.
    ENDIF.
    WRITE: / LEBAN1-BANFN.
    ENDIF.
    Regards,
    Vik
    Edited by: vikred on Aug 7, 2009 6:55 PM
    Edited by: vikred on Aug 7, 2009 7:23 PM

Maybe you are looking for

  • Mountain Lion crashes

    Hello, After installing Mountain Lion, my iMac keeps restarting during boot sequence. I have a 27-inch, late 2009 iMac, 2.66 GHz Intel Core i5, 4 GB 1067 MHz DDR3, ATI Radeon HD 4850 512 MB. It restarts for 2 or 3 times, and after that, everything go

  • ML documents missing in PCA

    Hi, For few ML document types are missing in PCA . FI entries are correct, however in GL line item report in coumn Amt loc.curr.2 is not matching with column  LC amnt. material ledger is active. Due to this MAP (per unit price) is not matching for co

  • How can I avoid to get hot my Mac when i use Windows an Revit 2013 app.?

    I' m a Arquitecture Student, and I should use Revit and this application is just for windows, an autorized apple technician Install windows, when I use the app Revit, after 20 to 30 minuts, my mac strart to get hot, and I can keep working. Stop and t

  • Material Ledger - Actual / Standard costing

    Hi Experts, we need some help in material price determination with material ledger. Due to local regulations, we need to have our material master with price control determination valued to V in local currency, however, due to IFRS regulations, we nee

  • Lock infotype 210 when employee makes any change in W4 thru ESS

    We have been trying to figure out a way to lock IT 210 when a user makes a change to thier W4 in ESS to implement double verification principle...where another user has to verify the changes and approve it. We already have something similar for IT 6,