How to create a new Text Object to be used for SAVE_TEXT FUNCTION

hi,,
can anyone tell how can i create a new text object and text id for saving text by using function SAVE_TEXT.
Thanks

hi,.
try out this 
DATA: header LIKE thead.
DATA: newheader LIKE thead.
DATA:lines LIKE tline OCCURS 0 WITH HEADER LINE.
header-tdobject = 'VBBK'.
header-tdname = delivery number.
header-tdspras = language.
lines-tdformat = '*'.
header-tdid = text id. "for example: Z022
lines-tdline = your text that you want to write .
APPEND lines. CLEAR lines.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = header
savemode_direct = 'V'
IMPORTING
newheader = newheader
TABLES
lines = lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.

Similar Messages

  • How to create a LONG TEXT object in BAPI_ALM_NOTIF_CREATE

    Dear experts,
    Would you please give me a hand how to create a LONG TEXT object when creating a new Notification using BAPI_ALM_NOTIF_CREATE.
    The snapit of my code is below. The Notification is created but without a long text.
    THANK YOU!!
    Data:
        lv_it_longText type STANDARD TABLE OF BAPI2080_NOTFULLTXTI,
          lv_st_longText like LINE OF  lv_it_longText,
      lv_st_longText-OBJTYPE = 'QME'.
      lv_st_longText-TEXT_LINE = DESCRIPTIONLONG.
    CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
      EXTERNAL_NUMBER          =
       notif_type               = 'M1'
        notifheader              = lv_header
      TASK_DETERMINATION       = ' '
      SENDER                   =
      ORDERID                  =
    IMPORTING
       NOTIFHEADER_EXPORT       = lv_header_import
    TABLES
    *NOTITEM                  =   lv_it_item
      NOTIFCAUS                =
      NOTIFACTV                =
      NOTIFTASK                =
      NOTIFPARTNR              =
       LONGTEXTS                = lv_it_longText
      KEY_RELATIONSHIPS        =
       RETURN                   = lv_it_return.

    Hi
    Make sure you have filled OBKEY.
    OBJKEY must have the corresponding sort field for the values named below :-
    1. QMEL - Notification header
    2. QMFE - Notification item
    3. QMUR - Notification cause
    4. QMSM - Notification task
    5. QMMA - Notification action
    The combination of sort field of item/cause, item/task and item/action must be unique within a notification. If you leave the sort field empty and the OBJTYP = QME, then a long text is created for the notification header.
    Regards
    Abhii

  • How to create a new custom object in SRM

    Hi there gurus,
    Is there any (easy) way to create a new Object in SRM?
    What I need is a new object similar to a PO, Shopping Cart, RFX... in order to model a business requirement needed after Bid Responses and just before Approval Process (Contract or PO).
    I need a bus id, a range for document numbers, some custom fields related to this new object (one object per Response) and new screens in order to populate needed information...
    Any information regarding that would be really appreciated.
    Thanks in advance.

    Hi and thank you so much for your answers!
    Basicly, just after the last BID Response has been received a new approval process called "XXX" has to be performed in order to classify each response into "Acceptable" or "Unaceptable". It may sound like no business object has to be defined because a new flag field "Acceptable" could be added to the Quote, but it is not so easy because, as i said before, the underlaying workflow needs different kinds of approvals (there are additional issues which I don´t really know) and the functional team have dediced that the only way is creating a new Business Object "XXX".
    So, there should be one "XXX" for each BID Invitation, and this "XXX" object should have one item line for each BID Response received.
    All in all, I need a new screen with an input field in order to specify a BID Invitation number. I have to retrieve all offers for this invitation number and display them in a table with fields: Response Number, Response Status, Company Name, Bidder Name, Country, Amount, Price Type and Resolution (Acceptable o Unacceptable). This table represents the "Item" level for the new object "XXX".
    The header level should contain tabs for "XXX" General Info, Notes&Attachments, Approval and Tracking. We suppose that all of these tabs are standard tabs for all business objects. Furthermore, standard buttons to Save, Order, Print Prev, etc should be added and 2 new buttons have to be visible when "XXX" is approved.
    Thus I need technical information related to three different levels: i) actions to do at EP level (iviews, pages, or whatever I need to integrate this new object into the menus, powl, etc), ii) actions to do at Webdynpro level (I think that lot of standard functionalities could be reused, ie. common tabs for notes&attachments etc) and iii) actions to do at data-model level (in order to store all data regarding the new object in a proper way).
    I hope this help...
    Thank you!
    Edited by: Vicente Ángel Lopez Romero on Jul 30, 2009 11:24 AM (Typo error)

  • How to create a new database object?

    i login at sys or system, then enter below:
    create database project;
    the error is < privileges deny >
    what is going wrong???
    null

    Kelvin (guest) wrote:
    : i login at sys or system, then enter below:
    : create database project;
    : the error is < privileges deny >
    : what is going wrong???
    The full format of the command is
    create database project
    controlfile reuse
    datfile '?/oradata/system.dbf' size 250M reuse
    autoextend on next 100M maxsize 550M
    logfile '?/oradata/redo1.rdo' size 30M reuse,
    '?/oradata/redo2.rdo' size 30M reuse
    maxdatafiles 256;
    To execute this command do this:
    sqlplus /nolog <<EOF
    connect internal
    startup force nomount
    create database project
    controlfile reuse
    datafile '?/oradata/system.dbf' size 250M reuse
    autoextend on next 100M maxsize 550M
    logfile '?/oradata/redo1.rdo' size 30M reuse,
    '?/oradata/redo2.rdo' size 30M reuse
    maxdatafiles 256;
    alter tablespace system minimum extent 64k;
    create rollback segment rb_t;
    alter rollback segment rb_t online;
    @?/rdbms/admin/catalog
    @?/rdbms/admin/catproc
    EOF
    and your project database will be created.
    null

  • How to create a new user in oracle apps using exiting user

    How To Copy Oracle apps user access to a New oracle apps user With Same Privilage/responsibilities.

    Hi;
    You can use dbms_metadata.get_ddl
    Regard
    Helios

  • Workflow - Create a new buisness object type for an new infotype.

    Hi all,
    I have an issue with creating a new buisness object type, which is related to a
    supertype, for an new infotype.
    I am new to workflow and business object. I don't have much knowledge in these area. I need to resolve this problem ASAP.
    Could someone please provide me a step-by-step guide on how to create a new business object type, which is related to an existing supertype, for an newly created infotype?
    If would be very much appreciated if someone could assist me in resolving this issue.
    Thank You.

    Business objects are maintained in SWO1 creating a subtype is done with the button: Create subtype (F9)
    If you don't have knowledge of workflow or abap objects, it is perhaps better to tell your employer that and find someone who has.
    If your problem is simply only creating a subtype then go with the instructions I already gave you, if however more things need to be done, like extending the subtype with (virtual)attributes, methods, events, delegating the subtype and implementing the methods in newly created tasks and subsequently workflows I really advise to find someone who can do this, or attend a SAP course on this subject.
    Kind regards, Rob Dielemans

  • How to create a new User / Contact using APIs

    I am not able to figure out how to create a new User / Contact in WLPS using APIs
    . Is there a factory class ?
    Thanks,
    AJ

    Hi Bala,
    Try using these function modules
    SUSR_BAPI_USER_CREATE
    BAPI_USER_CREATE
    BAPI_USER_CREATE1
    BAPI_USER_INTERNET_CREATE ( This internally calls BAPI_USER_CREATE1)
    Please read the FM documentation for more information.

  • How to create a Document Set in SharePoint 2013 using JavaScript Client Side Object Model (JSOM)?

    Hi,
    The requirement is to create ""Document Sets in Bulk" using JSOM. I am using the following posts:-
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1904cddb-850c-4425-8205-998bfaad07d7/create-document-set-using-ecma-script
    But, when I am executing the code, I am getting error "Cannot read property 'DocumentSet' of undefined "..Please find
    below my code. I am using Content editor web part and attached my JS file with that :-
    <div>
    <label>Enter the DocumentSet Name <input type="text" id="txtGetDocumentSetName" name="DocumentSetname"/> </label> </br>
    <input type="button" id="btncreate" name="bcreateDocumentSet" value="Create Document Set" onclick="javascript:CreateDocumentSet()"/>
    </div>
    <script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"> </script>
    <script type="text/javascript">
       SP.SOD.executeFunc('sp.js','SP.ClientContext','SP.DocumentSet','SP.DocumentManagement.js',CreateDocumentSet);
    // This function is called on click of the “Create Document Set” button. 
    var ctx;
    var parentFolder;
    var newDocSetName;
    var docsetContentType;
    function CreateDocumentSet() {
        alert("In ClientContext");
        var ctx = SP.ClientContext.get_current(); 
        newDocSetName = $('#txtGetDocumentSetName').val(); 
        var docSetContentTypeID = "0x0120D520";
        alert("docSetContentTypeID:=" + docSetContentTypeID);
        var web = ctx.get_web(); 
        var list = web.get_lists().getByTitle('Current Documents'); 
        ctx.load(list);
        alert("List Loaded !!");
        parentFolder = list.get_rootFolder(); 
        ctx.load(parentFolder);
        docsetContentType = web.get_contentTypes().getById(docSetContentTypeID); 
        ctx.load(docsetContentType);
        alert("docsetContentType Loaded !!");
        ctx.executeQueryAsync(onRequestSuccess, onRequestFail);
    function onRequestSuccess() {       
        alert("In Success");
        SP.DocumentSet.DocumentSet.create(ctx, parentFolder, newDocSetName, docsetContentType.get_id());
        alert('Document Set creation successful');
    // This function runs if the executeQueryAsync call fails.
    function onRequestFail(sender, args) {
        alert("Document Set creation failed" + + args.get_message());
    Please help !!
    Vipul Jain

    Hello,
    I have already tried your solution, however in that case I get the error - "UncaughtSys.ArgumentNullException: Sys.ArgumentNullException:
    Value cannot be null.Parameter name: context"...
    Also, I tried removing SP.SOD.executeFunc
    from my code, but no success :(
    Kindly suggest !!!
    Vipul Jain

  • Crystal Reports XI - How  to create a new field using a formula field

    I'm quite new to CR, but have been learning quickly!
    I would like to know how to automatically create a new record/field based on another field in that row...
    I have a report showing the following data:
    Run Code     Start KM    Stop KM    Status 
    H2                 100            150           Partial
    H2                 150             155          Partial
    H2                 155             160          Partial
    S3                 120             150       Completed
    The status is generated by comparing the 'Start KM' and 'Stop KM' against fields in another table called 'Start Odo' and 'Stop Odo'
    In this example...
    H2 has 'Start Odo' and 'Stop Odo' values of 90 to 160, therefore there is still 90-100 to check.  The 'Start KM' and 'Stop KM'  is equal to the 'start Odo' and 'stop Odo' for S3, therefore it shows completed.
    My question is how do you create a formula field, which will add an entire row...displaying the values 90-100.
    I've been trying to use a conditional check in the 'Start KM' column, that sees if status is equal to partial than if start km is greater than start odo (Which is the reference km) then display the value of start odo in the new row. I'm stuck at how to create a new row.
    I want the final result to look like this...
    Run Code     Start KM    Stop KM    Status 
    H2                  90              100         Partial
    H2                 100             150          Partial
    H2                 150             155          Partial
    H2                 155             160          Partial
    S3                 120             150       Completed
    Any suggestions would be more than appreciated

    Hi Adi
    Looking at your examples it seems that you want to add a row to the existing recordset (rows fetched from the database).
    If it is the case (even if based on a formula) then you can not do it within crystal. Crystal is designed to display data and ideally it should not generate the new data.
    However, as per your requirement you can try to add this logic at database end. May be a command object within Crystal Reports can help you.
    Let me know if you do not understand anything.
    Regards
    Nikhil

  • How to create a new session in JSP file

    Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.

    I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
    A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
    // this will create a new session object if one doesn't already exist.
    HttpServletRequest.getSession( true );
    Hope this helps

  • How to create a new field in a sub screen in material master. ?

    How to create a new field in a sub screen in material master. ?
    Kindly help us.
    LIke wise tell me how to create a new sub screen as per my desired

    Follow the documentation of Logistics - General->Material Master->Configuring the Material Master->Create Program for Customized Subscreens  to add the new field in material master.
    Create Program for Customized Subscreens
    In this IMG activity, you can create a function group of your own by copying function group MGD1 (for industry) or function group MGD2 (for retail). The subscreens are not copied, except for two subscreens which are copied for technical reasons. You can use this copy to create subscreens of your own which you can assign to a data screen in the activity Define Structure of Data Screens for Each Screen Sequence.
    Requirements
    Be sure to read the program documentation first.
    Activities
    1. Create a function group of your own by choosing Execute.
    2. Enter a name containing up to 25 characters, beginning with the letter Y or Z, and choose Save.
    3. Access the Object Navigator.
    You do this from the SAP standard menu by choosing Tools -> ABAP Workbench, and then Object Navigator.
    4. Display either program SAPLMGD1 (industry) or SAPLMGD2 (retail) as required.
    5. Copy the subscreens as required, ensuring that they already contain as many as possible of the field names you want to use in your function group. You do this as follows:
    a) Choose Screens, position the cursor on the corresponding subscreen, and choose Copy in the context menu.
    b) Enter the program to which you want to copy the subscreen, prefixing it with SAPL, and enter a screen number. Use the screen number of the original subscreen where possible. If the F1 help is specific to a particular subscreen, this ensures that this context-specific help continues to be displayed.
    Example
    You have called your function group YENTERPRISE, to which you want to copy subscreen SAPLMGD1 2301. Enter SAPLYENTERPRISE as the program to which the subscreen is to be copied, and enter (preferably) 2301 as the screen number.
    6. Return to the initial screen of the Object Navigator and display your program. In the example above, you would enter SAPLYENTERPRISE.
    7. Choose Update object list.
    8. Select the subscreen you have copied and activate it by choosing Activate in the context menu.
    Using the Screen Painter, you can remove fields you do not require on the subscreen or include additional fields from other subscreens (see the ABAP Dictionary). For information on the Screen Painter, see the SAP library documentation BC ABAP Workbench Tools.
    Points to consider when removing or adding fields
    Make sure that a field statement exists for each field on the subscreen since data may not otherwise be transported correctly. You can use subscreen SAPLMGD1 2002 as an example.
    For the fields you have added, include any check modules and modules for self-programmed F4 help that are called up for these fields on the original subscreen. You can do this by displaying the flow logic for the original subscreen and searching for such modules. They normally have the same names as the fields themselves. When you find a module, copy the corresponding module call to your subscreen.
    If you change the order in which fields are transported that are checked together in the flow logic (such as the safety stock and minimum safety stock), you must deactivate the check module for the first field and activate it for the second. The system would otherwise transport the first field, and carry out the check before the second field is transported.
    Any error messages that fields are unknown when activating the subscreen are due to the fields still being included in checks, even though you have removed the fields from the subscreen. Search for the fields in the source code and make the lines in which they appear comment lines. Then reactivate the screen.
    9. Assign the subscreen to a data screen as required.
    Note on transport
    Use the Workbench Organizer to transport the copy you have created.
    Proceed

  • How to create a new line in label in Xcode

    How to create a new line in label. for example I have two buttons & one label. when i press first button, l want to change the label text to "Hello World". then when I press the second button, on the same label I need to display"Good Bye" on the next line in xcode 5?
    I want to display the lablel like below:
    Hello World
    Good Bye

    I am using Xcode to develop an app for iOS.
    I tried using multi-line label & belwo is my code.
    - (IBAction)change:(UIButton *)sender {
        self.Screen.text = @"\nHello World";
    - (IBAction)newChange:(UIButton *)sender {
          self.Screen.text = @"\nGood bye";
    everytime when i pressed the button, it replacing the whold lable text instead of adding the second line.

  • How to create a new Handling unit assigned to a Shipment?

    Hi,
    has anyone an experience how to create a new HU and assign it to a shipment (object type VEKP-VPOBJ = '04')?
    I need to create it via SAPConsole transaction. Originally I intended to use LM19 to create an unassigned HU and to assign it further on via some BAPI. But I could not find any suitable BAPI for the assignment. Standard transaction LM24, allows only to create a HU with an assignement to a delivery (outbound/inbound).
    Thank you
    Martin

    If you want to use function modules to accomplish this, here is 1 way.
    BAPI_HU_CREATE
    BAPI_TRANSACTION_COMMIT
    BAPI_HU_CHANGE_HEADER
    HU_POST
       lw_hproposal-hu_exid         = i_exidv.  "Ext HU# Optional
       lw_hproposal-hu_status_init = 'A'.          "Planned. -
       lw_hproposal-pack_mat   = i_pack_mat.       "Packaging Material
    *  This will create an UNASSIGNED HU object type 12.
       CALL FUNCTION 'BAPI_HU_CREATE'
         EXPORTING
           headerproposal = lw_hproposal
         IMPORTING
           huheader       = lw_huheader
           hukey          = lv_hukey
         TABLES
           itemsproposal  = li_iproposal
           return         = li_return.
    *  I could not assign to a shipment unless the commit was done.
    IF lv_hukey IS NOT INITIAL.
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 
           EXPORTING
             wait   = 'X'
           IMPORTING
             return = lw_return.
         IF sy-subrc NE 0.
           APPEND lw_return TO et_return.
         ENDIF.
    *    Assign to a Shipment
         lw_huheader-pack_mat_object  = i_object.               "04-HU Type for Shipment
         lw_huheader-pack_mat_obj_key = i_obj_key.           "Shipment #   
         lw_huheader-dc_custom_mat    = i_dc_custom_mat."Sets the Dist Channel
         CALL FUNCTION 'BAPI_HU_CHANGE_HEADER'
           EXPORTING
             hukey     = lv_hukey
             huchanged = lw_huheader
           IMPORTING
             huheader  = e_huheader
           TABLES
             return    = li_return.
         e_hukey       = lv_hukey.
    *It is still not attached to the shipment until HU_POST is done.
      LS_OBJECT-OBJECT = P_OBJTYP.    "04
       LS_OBJECT-OBJKEY = P_OBJKEY.   "Shipment Number.
    CALL FUNCTION 'HU_POST'
      EXPORTING
        IF_SYNCHRON          = ' '
        IF_COMMIT            = 'X'
        IS_OBJECT            = LS_OBJECT
      IMPORTING
        ET_MESSAGES          = LT_MESSAGES

  • How to create a OTR Text in Web Dynpro ?

    Hi All,
    Please help, How to create a OTR Text in Web Dynpro ?
    Urgent.
    Thanks in advance.
    Kaleem.

    Hi Kaleemullah,
    To create OTR Text, T-Code is SOTR_EDIT. If you run this transaction then one screen will appear. There you can choose Long Text or Short Text based on your
    Text. You can choose language also. In Text field you can enter your text. You can put WDYV in your Object Type field. In Text block Length can be increased to 25 as it may be problem if language conversion of Text happens. You must fill your package field and save the OTR.
    I hope you can be able to create OTR Text now.
    Best Regards,
    bansidhar

  • [JS, CS3] Creating a new boolean object. Is it possible?

    Hello,
    I am wondering if I can create a new boolean object in InDesign that I can use in a script I am working on. What I am doing is selecting some text and then manipulating other aspects of the selection's paragraph. I want to be able to determine if certain characters are selected, so the new boolean object would be, let's say "selected." If a character within the paragraph is selected, it's value would be "true," while other characters in the paragraph that are not selected would remain "false." Is this possible? I am also thinking that I could use an already existing boolean value, such as strikeThrough and then turn it off at the end of the script. But this is not elegant if the text were to REALLY need strikeThrough (not very likely, but just sayin'). Thanks for any advice.
    Regards,
    Len Swierski

    Len,
    Your current approach is the only feasible one. You can't create new properties for Indesign's objects. In some cases it's easy: text frames, for instance, can have their label set to a certain value, as can several other objects (cells, the application, etc.).
    But characters don't have the label property, so you have to use an existing property, as you did with overstrike. If you don't like using that particular one, have a look through the OMV under "Character" and see if there's a property that suits your needs better than overstrike.
    What you can use use this: in a script you can assign a character (text, word, etc.) an underline colour without setting underline. In the interface you'd have to enable underline, then set a colour, then disable underline. In a script enabling and disabling underline isn't necessary: just set myCharacter.underlineColor to some value ('Black' for "yes", 'White' for "no" or something like that).
    So though you can't add new properties to characters, they have so many already that you're sure to find one you can exploit.
    Peter

Maybe you are looking for

  • Import pictures and videos

    Hi. I noticed that since I deactivated the "Video" app in my Xperia Z1 Compact (running stock Android 5.0.2), the Movie Creator app doesn't include videos in the created videos, and if I try to edit a created one  and replace a photo with a video I g

  • Connection timeout when running web service

    I'm running a desktop application which call an a web service every 10 minutes. Every few calls to this web service it fails. (for example: 4 calls to ws works fine but fifth call failed) When executing the application on: windows xp professional (ph

  • Flash Movie export with Keynote

    Hi, I am using Keynote this time mainly to make a Flash movie for a website. However, when I export the movie to SWF format,the file is quite large (About 9mb) too large for use online. Does anyone know, is there a way to reduce this filesize? I look

  • When Firefox starts, window opens, "Is your PC slow" by Systweak. powered by Afterdownload cannot delete

    Yesterday, when I turned on Firefox, an Ad for a Registry cleaner pop up on the opening page. I tried to delete the pop up but there is no "close" button. I tried to delete using Add or Remove Programs Control panel), did not show up in the Display l

  • Using foreign JMS providers with wls

    does anybody have a clou, where i can find that article, i think it's           by steve felts on using foreign JMS providers with wls? i think the           link on dev2dev is broken?