BAPI/FM to create commitment item which can be commit/roll back externally

Hi experts,
Is there any BAPI/FM to create commitment item????
I can use BDC but problem is that it can't be roll back. In my requirement  i want to roll back based on condition.
i am creating GL and commitment item, if GL creation is failed commitment item should be roll back.
Is there way to solve this issue ? please help me.
Thanks in advance.
Regards.

Hi ,
There is no fm for commitment item, In BDC what you can do is create two recording with 'SAVE' button clicked & not clicked. For test run use the recording where save button is not clicked and for actual run the other.
You can also have a look into the program RFFMMDBI85 where the function FM_COM_ITEM_NO_SCREEN_CREATE is used. In that particular fm you have a parameter callsed i_flg_test
Edited by: Keshav.T on Feb 10, 2012 11:56 AM

Similar Messages

  • How to create a material which can be used in T-Codes VAO1 & MB1C create

    Hello Experts,
    How can I create a material which can be used to create a sales order and can be used to create inventory using VAO1 and MB1C T-Codes respectively.
    What are the configurations that I need to take care of, while creating it?
    I need to create a material which can be used in the whole sales cycle(sales order,goods issue,billing and etc).
    Please Help,
    Thanks in Advance,
    Suma

    Hi
    Thanks for your fast replies.. I have created a new material and was able to create inventory thru MB1C. But I was not able to generate a goods delivery(VL01N) and billing document(VF01)  for the sales order.
    Error: No schedule lines due for delivery up to the selected date
    Message no. VL248
    Diagnosis
    There are no schedule lines due for the given order item up to the date chosen.
    System Response
    The system does not create a delivery item for this order item.
    Procedure
    Check whether the order item to be delivered contains confirmed schedule lines.
    If this is the case, set the selection date further into the future if you still want to create a delivery for this item.
    Please suggest,
    Tanks,
    Suma
    Edited by: Suma B on Sep 23, 2008 3:55 PM

  • How to create a structure which can hold a dynamic table as a field in DDIC

    Hi ,
           I am designing a solution for a problem and have a unique requirement.  I need to create a structure which can hold a field where dynamic table data can be stored.  Let me illustrate with an example :
    My structure  ( say  Z_output_struc ) will have the fields
    Table_name  Table_Data
    My function module will have a table type of the above structure, so in effect ,my output can have multiple table names and related to each of them, there will be table data of that table name. The issue is how do I configure this in DDIC ?
    I tried creating table_data as "Type ref to Data"  but was stuck  inside the func module when I tried to transfer data to this.
    Any pointers as to how to think about this differently ? 
    Best Regards,
    Girish

    Hi Girish,
    you start directly from the ref to data. You assign it to a field symbol and cast this to the type of the destination of your select. So you can directly add the reference to the cache:
    I hope this example helps a bit (I took a form instead of a function module as it is easier to add here and used an hr table as kna1 is empty on my test system):
    REPORT  z_rwe_99_dyn_tab_cache.
    * type definition
    TYPES:
      BEGIN OF _s_cache,
        table TYPE        tabname16,
        cache TYPE REF TO data,
      END   OF _s_cache,
      _t_cache TYPE STANDARD TABLE OF _s_cache.
    * data declaration
    DATA:
      lv_table     TYPE tabname16,
      lv_condition TYPE string,
      lt_cache     TYPE _t_cache.
    * define table and condition
    lv_table     = 'HRP1000'.
    lv_condition = 'plvar = ''01'' and otype = ''S'' and objid = ''50000016'''.
    * get the result of a single table into the cache
    PERFORM get_dyn_table USING
                            lv_table
                            lv_condition
                          CHANGING
                            lt_cache.
    * form to read a single table
    FORM get_dyn_table USING
                         iv_table     TYPE tabname16
                         iv_condition TYPE string
                       CHANGING
                         ct_cache     TYPE _t_cache.
      FIELD-SYMBOLS:
        <lt_table> TYPE ANY TABLE.
      DATA:
        ls_cache TYPE        _s_cache,
        lr_data  TYPE REF TO data.
      CREATE DATA lr_data TYPE STANDARD TABLE OF (iv_table).
      ASSIGN lr_data->* TO <lt_table>.
      SELECT * FROM (iv_table) INTO TABLE <lt_table>
        WHERE
          (iv_condition).
      ls_cache-table = lv_table.
      ls_cache-cache = lr_data.
      APPEND ls_cache TO ct_cache.
    ENDFORM.                    "get_dyn_table
    If you have more questions just give another post.
    Best Regards
    Roman

  • Creating Commitment Items In Purchase Order Level

    Hi Friend,
                    I need some information on How to create commitment items  at Purchase Order item level. Any  BADI's,  please suggest me.
    Thanks in Advanced
    Shiv'.

    Hi dude ,
    Here i am not suppose to  create any new tab at item level , could you  little bit clear............,
    Thanks .
    Shiv'.

  • How to create one procedure which can drop and create materialized view

    Hi,
    I want to create one pl/sql procedure which can first drop materialized view CATEGORY_PK and after that create same materialized view CATEGORY_PK.
    programme is as follows:
    DROP MATERIALIZED VIEW CATEGORY_PK;
    CREATE MATERIALIZED VIEW CATEGORY_PK REFRESH FORCE WITH PRIMARY KEY AS
    SELECT cav1.ownerid AS categoryid, p.uuid AS productid ,p.domainID AS productdomainid,pav.stringvalue AS NAME
         ,pav2.stringvalue AS ID, pav3.stringvalue AS SHORT
    FROM product p, product_av pav, catalogcategory_av cav1, catalogcategory_av cav2,product_av pav2,product_av pav3
    WHERE
    cav1.NAME = 'PRODUCT_BINDING_ATTRIBUTE' AND
    cav2.NAME = 'PRODUCT_BINDING_VALUE' AND
    cav1.ownerid = cav2.ownerid AND
    p.uuid = pav.ownerid AND
              p.uuid = pav2.ownerid AND
              p.uuid = pav3.ownerid AND
    pav.NAME = cav1.stringvalue AND
              pav2.NAME = cav1.stringvalue AND
              pav2.NAME = cav1.stringvalue AND
    pav.stringvalue = cav2.stringvalue AND
              pav2.stringvalue = cav2.stringvalue AND
              pav3.stringvalue = cav2.stringvalue
    UNION
    SELECT catalogcategoryid AS categoryid, productid, repdomainid AS productdomainid,pav1.stringvalue AS NAME
         ,pav2.stringvalue AS ID, pav3.stringvalue AS SHORT
    FROM productcategoryassignment ,product_av pav1,product_av pav2,product_av pav3
         WHERE pav1.ownerid=productid
         AND pav2.ownerid=productid
         AND pav3.ownerid=productid
         AND pav1.NAME='name'
         AND pav2.NAME='productID'
         AND pav3.NAME='shortDescription';

    user498566 wrote:
    I want to create one pl/sql procedure which can first drop materialized view CATEGORY_PK and after that create same materialized view CATEGORY_PK.That sounds like a waste of time and resources. What do you hope to achieve by this? A refresh? If so, a simple refresh of the old materialized view will do.
    If you truly want to continue this road, you'll have to use the EXECUTE IMMEDIATE command to execute DDL commands from within PL/SQL.
    Regards,
    Rob.

  • Firefox v.17 in WXP and W7 disables Back button, Reload button, Home button, and Bookmarks Toolbar Items - How can I get them back or rollback to V.16 ???

    All those buttons worked fine until I updated Firefox from v.16 to v.17. Now, I can't get any of the above mentioned buttons on the toolbar to work anymore. Links inside an HTML page still work, but not the buttons noted above.
    This v.17 BUG appeared on my WXP and W7 platform PC's, only after I upgraded Firefox to v.17. No other changes were made that could have caused this BUG on either PC.
    If I can't fix this, then how can I rollback to v.16?

    Sorry cor-el, you answered a different question than the one I asked.
    It turns out that FF v17 is incompatible with Tab Utilities Lite v.1.1.5. Disabling TULite restored proper operation.
    Two questions for the Mozilla community -
    Why must there be so many new versions? Couldn't they be combined?
    And,
    Why can't there be a roll-back capability, so that if a new version is defective or buggy (yes, it certainly happens!), users could roll it back until the bugs are worked out? REAL software always includes roll-back capability!!!
    Thanks, Airpilot1

  • Difference Between Phased Migration and Parallel-cutover and which is better considering Roll-back if something unexpected occurs

    Difference Between Phased Migration and Parallel-cutover and whcih is better considering Roll-back if something unexpected occurs
    Regards
    Sumit

    For what application and going from which version to which?
    Chris

  • How to create a program which can be installed as NT service?

    I wrote a server program using LW/CVI 5.5. I want to install it on NT/2000
    OS and running as NT/2000 services. I know SRVANY.EXE can do this, but I
    want to one step do this using INSTSRV.EXE or using install utility to modify
    registry keys.
    Thanks.

    Hi
    Thanks for your fast replies.. I have created a new material and was able to create inventory thru MB1C. But I was not able to generate a goods delivery(VL01N) and billing document(VF01)  for the sales order.
    Error: No schedule lines due for delivery up to the selected date
    Message no. VL248
    Diagnosis
    There are no schedule lines due for the given order item up to the date chosen.
    System Response
    The system does not create a delivery item for this order item.
    Procedure
    Check whether the order item to be delivered contains confirmed schedule lines.
    If this is the case, set the selection date further into the future if you still want to create a delivery for this item.
    Please suggest,
    Tanks,
    Suma
    Edited by: Suma B on Sep 23, 2008 3:55 PM

  • Can i create a function which can take infinite parameter.

    Can i make a function which get infinite parameter.
    like avg.

    Kamran Riaz wrote:
    Can i make a function which get infinite parameter.
    like avg.I think you'll have trouble finding anything to take infinite parameters cos that would be bigger than the universe itself.
    User defined aggregate functions example...
    http://asktom.oracle.com/pls/asktom/f?p=100:11:335287534824285::::P11_QUESTION_ID:229614022562
    [email protected]> create or replace type StringAggType as object
      2  (
      3     theString varchar2(4000),
      4 
      5     static function
      6          ODCIAggregateInitialize(sctx IN OUT StringAggType )
      7          return number,
      8 
      9     member function
    10          ODCIAggregateIterate(self IN OUT StringAggType ,
    11                               value IN varchar2 )
    12          return number,
    13 
    14     member function
    15          ODCIAggregateTerminate(self IN StringAggType,
    16                                 returnValue OUT  varchar2,
    17                                 flags IN number)
    18          return number,
    19 
    20     member function
    21          ODCIAggregateMerge(self IN OUT StringAggType,
    22                             ctx2 IN StringAggType)
    23          return number
    24  );
    25  /
    Type created.
    [email protected]>
    [email protected]> create or replace type body StringAggType
      2  is
      3 
      4  static function ODCIAggregateInitialize(sctx IN OUT StringAggType)
      5  return number
      6  is
      7  begin
      8      sctx := StringAggType( null );
      9      return ODCIConst.Success;
    10  end;
    11 
    12  member function ODCIAggregateIterate(self IN OUT StringAggType,
    13                                       value IN varchar2 )
    14  return number
    15  is
    16  begin
    17      self.theString := self.theString || ',' || value;
    18      return ODCIConst.Success;
    19  end;
    20 
    21  member function ODCIAggregateTerminate(self IN StringAggType,
    22                                         returnValue OUT varchar2,
    23                                         flags IN number)
    24  return number
    25  is
    26  begin
    27      returnValue := rtrim( ltrim( self.theString, ',' ), ',' );
    28      return ODCIConst.Success;
    29  end;
    30 
    31  member function ODCIAggregateMerge(self IN OUT StringAggType,
    32                                     ctx2 IN StringAggType)
    33  return number
    34  is
    35  begin
    36      self.theString := self.theString || ',' || ctx2.theString;
    37      return ODCIConst.Success;
    38  end;
    39 
    40 
    41  end;
    42  /
    Type body created.
    [email protected]>
    [email protected]> CREATE or replace
      2  FUNCTION stringAgg(input varchar2 )
      3  RETURN varchar2
      4  PARALLEL_ENABLE AGGREGATE USING StringAggType;
      5  /
    Function created.
    [email protected]>
    [email protected]> column enames format a30
    [email protected]> select deptno, stringAgg(ename) enames
      2    from emp
      3   group by deptno
      4  /
        DEPTNO ENAMES
            10 CLARK,KING,MILLER
            20 SMITH,FORD,ADAMS,SCOTT,JONES
            30 ALLEN,BLAKE,MARTIN,TURNER,JAME
               S,WARD
    [email protected]>

  • Help on creating custom charts which can show information in context

    Hi there.
    I'm a long time reader, but first time poster.
    I've been using JavaFX for a while now and am working on a project where my goal is to develop an application which:
    - is used for presenting last quarters sales results for instance.
    - is getting itsdata from a back-end db.
    - presents the data as a presentation so each subject is show on one slide, containing a chart and a subjects title.
    Now for the communication with the back end there is no problem, used JavaFX long enough to get past that. But I've never worked with the charts
    The thing I'm struggling with is my wish to show in-context information on screen based on which bar is clicked on the chart, for instance when the January bar is clicked I want to pop-up a panel which will show the names and photo's of the best selling products of that month.
    I have a certain idea of how to do this:
    1. getting the chart data from the chart to send to the custom node as parameters
    2. creating a custom node which will show different data based on what parameters I give it to him, for instance show("product", "January")
    I was hoping that somebody could suggest his/hers ideas on this, or approve/edit my approach. Or maybe share some insights or so.
    Thanks in advance!

    Hi Inol.
    I'm actually working on my solution based on that very useful link. Thanks a lot ....!
    Please read carefully what i plan to do.
    Basically is to go a little bit further from your proposal: Since my knowlegde of Apex is limited, i just want to know if, based on your idea, the page should not be public, but move the authorization procedure from the onload on requested page to say, an onload procedure on the Login Page, so if the procedure success, redirect (not show login page) to the page requested in the first place, and if it fails, then show login page.
    Just want to know if this is possible, before going against the wheel.
    Do you think this is possible? This way, Apex app / page can be accessed from both: Apex itself and Forms.
    Best regards, and thanks a lot for you unvaluable feedback....!
    Regards. Luis ...:)

  • Is it possible to create a form which can be filled out during service work and then printed

    I want to build a form that I can fill out on my laptop as I perform service work.  The work being performed varies from job to job.  I would like to be able to print out only the work I perform, and not have a bunch of blank spaces for things not done.  Is that possible with this program?

    It might be, but the type of thing you're describing is perhaps better implemented with a dynamic XFA form created with Adobe's LiveCycle Designer, which came with Acrobat prior to version 11 and is now a separate product. It allows you do add/remove groups of fields (e.g., one or more rows, an entire sections, etc.) at run-time, causing the form to expand/contract as the fields are added/removed. This involves some scripting. There is a forum for Designer here where you can ask more questions.
    It's possible to create a form with Acrobat that dynamically adds entire pages (templates) at run-time, overlays the contents of a (normally hidden) template on an existing page, as well as show/hide fields, but automatic reflow of page contents is more problematic. This too involves scripting and you can ask about it in this or the Acrobat JavaScript forum.

  • How to create dummy pricture which can be used for chart in msword

    I want to create a chart in template,but have problem with creating dummy picture , is there any one could tell me how to create a dummy picture in msword. Thanks

    First create a chart.
    Now right click on chart > format picture > web
    copy the code.
    now you may delete it.
    insert a picture which you want.
    right click > format picture > web
    paste the code.
    done.

  • Using Final Cut Pro, can we create a subtitle which can be used in other applications?

    Can a subtitle file be created using FCP and later use in other application?

    Ian R. Brown wrote:
    You can create a title and export it as a video file to be used in any editing app but you won't be able to alter the words or layout once it has been exported.
    Export as ProRes 4444 if the title has alpha channel otherwise you'll lose the transparency.
    Andy

  • SCCM 2012: create user/group which can only import computers, reset pxe boots

    Hi,
    We would like to give helpdesk some basic rights so they can add computers (via mac/pc name) and reset pxe-boots.
    We might grant extra rights but would like to start with these basic ones.
    I know the setup is fully different (RBAC) so your feedback how you implemented this would be highy appreciated.
    J.
    Jan Hoedt

    You can use "Custom Role Based Administration for Importing Computers" (http://blogs.technet.com/b/inside_osd/archive/2012/04/30/custom-role-based-administration-for-importing-computers.aspx)
    as a starting point. Then use "RBA Viewer" (part of the toolkit) to create your own, custom roles.
    Torsten Meringer | http://www.mssccmfaq.de

  • F.19 not showing open item which can be cleared in f.13

    Dear Guru,
    for some PO/item, they not appear in f.19, while they appear in f.13, what could be the reason.
    thanks,
    kick

    Please check if the PO items have GR.

Maybe you are looking for

  • Can I restore Office 2004 from Time machine backup

    Hi Guys, I have managed to delete office 2004 when I was trying to install office 2008 using a friend's copy. Office 2008 will not work for me as it needs online registration. I no longer have the office 2004 install disk. Is it possible to re-instal

  • Export to PDF from Infoview does not show correct data - CRS 2008

    I have a problem where users attempt to export a report from the Infoview interface to a PDF.  The report shows correctly in Infoview while in Crystal Reports format, but when the use exports the data, the data changes and shows different values.  To

  • Group and channelname in legend

    To have the channelname in the legend is easy I just add @CN(#)@ but is it possible to have the groupname aswell?? Solved! Go to Solution.

  • Do I need a wireless card in my PC or is the wireless router enough?

    PC connects via ethernet to a wireless router. Laptop connects wirelessly. I want to run itunes off of the PC. It does not have a wireless card. Do I need one to make this work? I couldnt really get a straight answer out of tech support.

  • Check on Settlement Rule in IW31

    Hi, I have to keep check on Settlement Rule in IW31. i have to compare the first four characters of Settlement rule with that of Planning Plant. If both are not equal an error message should be raised. For example Settlement Rule--->1600009  and if p