Pass tdline and tdformat to Sapscript

Hi all,
Can we pass tdline and tdformat at the same time to Sapscript?
My requirement needs the tdformat to be dynamically, is this possible ?
How should I pass a dynamic format to sapscript?
If yes, could someone provide some sample code?
Thanks in advance.

HI  myahsam,
Create a subroutine and and create a std text using trx SO10.Fill an internal table of the type tline using tdformat and tdline.
Use FM save_text to pass the values of tdformat and tdline dynamically.In the header parameter of the FM pass the name of the std text.
  wa_header-tdobject = 'TEXT'. 
  wa_header-tdname = c_tname .  (name of the std text)
  wa_header-tdid = 'ST' .
  wa_header-tdspras = spras.
CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
          header                     = wa_header
          insert                       = 'X'
          savemode_direct       = c_x
    TABLES
      lines                          = it_line
     EXCEPTIONS
       id                            = 1
       language                 = 2
       name                     = 3
       object                    = 4
       OTHERS                = 5
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
Then in the sapscript layout use include text statement to read this std text in the script.
Hope this helps
Neerja

Similar Messages

  • Taxreporter Form 940 and 941c in SAPSCRIPT

    Hi Gurus,
    Need your help on this. We are in ECC 6.0. As we are not live with ADS, we want to revert back changes to SAPSCRIPT for Taxreporter Form 940 and 941c for 2008. I tried to change table T5UX7 to SAPSCRIPT by changing the validity dates. It only works for SUI forms, but not for 940 and 941c forms. Can anyone let me know how these forms 940 and 941c can be changed back to SAPSCRIPT. Appreciate your help.
    Regards,
    Fred.

    i PASS TWO PARAMETERS FROM THE SAPSCRIPT  CHECK MY SELECT WITH INNER JOIN ...
    and
    pass the result in intenal tables
    REPORT  Z_GROUP_NGP.
    *&      Form  NGPGROUP
          text
         -->IN_TAB     text
         -->OUT_TAB    text
    FORM NGPGROUP TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy.
    Get first parameter in input table.
      READ TABLE in_tab INDEX 1.
      WRITE in_tab-value TO l_EXNUM .
      READ TABLE in_tab INDEX 2.
      MOVE in_tab-value TO l_EBELN.
      DATA : begin of d_append occurs 100,
         STAWN type EIPO-STAWN,
         TEXT1 type T604T-TEXT1,
         SUM type EKPO-NETWR,
         SUM1 type EKPO-NETWR,
        end of d_append.
    my internal table with full and multiline data is d_append
    my test element in sapscript is "
    /E ITEM_HEADER_F
    So how to pass the result of my query to sapscript ???

  • How come every time i try to download a app  it says Your apple id has been disabled. I already reset my pass word and it keeps saying the same message?

    How come every time i try to download a app  it says Your apple id has been disabled. I already reset my pass word and it keeps saying the same message?

    Apple - Support - iTunes - Contact Us

  • I got an iPad mini from a friend who is now passed away and I'm trying to activate it using my Apple ID but it won't let me because I have to contact the previous owner, what do I do!?

    I got an iPad mini from a friend who is now passed away and I'm trying to activate it using my Apple ID but it won't let me because I have to contact the previous owner, what do I do!?

    Take it, the original purchase receipt, and the friend's death certificate to a physical Apple Store and see what they say.
    (110829)

  • How do I fix my phone it keeps freezing on the pass code and when I turn it on or off it still does it and the home button reset didn't work

    How do I fix my iPhone it keeps freezing on the pass code and the home button reset does not work

    error 3194
    I can't update my phone and I AM using the latest update of Itunes AND have restarted computer and followed everything.  I'm to the point of booking an app't with the genius bar because I'm finding apples instructions and this latest update to be a complete waste of time.

  • I have got 2 iPad Air one of it is not logging me in because I have forgotten the pass code and have logged out from iCloud by accident. Can you please help me to use my iPad.

    HI
    I have 2 IPads, I am unable to use one of it because I have forgotten my pass code and also logged out from iCloud accidentially. Can you please help me to solve this problem.
    Cheers
    Raveena

    Follow the instructions on this page : Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • How to pass username and password while invoking a web service through wsdl

    Hello All,
    i am calling a web service through wsdl, but it is giving error 401. i want to know how to pass userid and password when i am invoking webservice?
    i am using NetBeans 6.1.
    i did following thing:
    First i created one web application, then i right clicked on project new->web service client, and gave the url for my wsdl.
    after that i create one main class and try to call my required operation by that wsdl.
    Thanks in advance

    Thanks dumchikov, i tried the same thing what ever you told but there is no option for security.
    when i right clicked on web service reference its open 1 window which have 2 tab one is quality of service and second is wsdl customization, then i clicked on wsdl customization. which contain Global Customization, Port Types, Port Type Operations, Port Type Faults, Binding, Binding Operations, Services, Ports and External Binding Files. it don't have security option.

  • I need help, speach over got accidently turned on in my Iphone 6, now i cant get into my phone it wont take my pass word and when I try to use Siri it says not available  what do I do

    I need help, speach over got accidently turned on in my Iphone 6, now i cant get into my phone it wont take my pass word and when I try to use Siri it says not available  what do I do

    Hi, Jennifer.  
    Thank you for visiting Apple Support Communities.  
    I understand that VoiceOver has been activated and you are unable to access your device.  I have done this myself and here are the steps to disable this feature.  
    VoiceOver
    Press the home button three times quickly (formerly "Triple-click home").
    Accessibility Shortcut
    Managing Accessibility features using iTunes
    Connect your iPhone, iPad, or iPod touch to any computer with iTunes installed.
    In iTunes, select your device.
    From the Summary pane, click > Configure Universal Access in the Options section at the bottom.
    Select the feature you would like to use and click OK.
    Use Accessibility features in iOS
    -Jason H.  

  • A very good friend of mine dropped her iphone into water and now it is not working.Her husband recently passed away and text messages from him and from well wishers after his decease are feared lost. Is there any way to retrieve them?

    A very good friend of mine dropped her iphone into water and now it is not working.Her husband recently passed away and text messages from him and from well wishers after his decease are feared lost. Is there any way to retrieve them?
    I suggested contacting Compub in Nassau St as the info is priceless and worth the trouble of trying to regain?
    Any thoughts? The poor lady is very distress

    If she has backed up her iPhone she can replace that iPhone and set up the new iPhone from her backup.
    You can put the iPhone that went into water into a plastic baggie with either new silica gel packets (preferred) or raw rice and let it sit for  4 - 5 days. After that time remove the phone and connect it to power for at least a half hour. While it is still connected to power reset it by holding down the power and hold button, wait for the Apple logo then let go of the buttons. Might take several tries. If it revives immediately back it up.

  • HT1620 Why is it asking me for a pass code and I didn't set one?

    Why is it asking me for a pass code and I didn't set one up. This never happen before when I updated to the most recent IOS on my Ipad2?

    It is most likely asking for your Apple ID password, but that is just a guess.
    Then again as KarenSelena says if someone set a passcode without actually telling you (maybe a Settings -> General -> Restrictions passcode), that might be why you are getting a passcode request.

  • HT4623 I tried updating to iOS6 via itunes bc my storage space was pass limit and now my phone is telling me it's in recovery mode and I need to restore it. I didn't back it up. How do I take it out of recovery mode and keep the information on my phone?

    I tried updating to iOS6 via itunes bc my storage space was pass limit and now my phone is telling me it's in recovery mode and I need to restore it. I didn't back it up. How do I take it out of recovery mode and keep the information on my phone?

    You cannot.  If it is in recovery mode, the data is already gone.
    Did you fail to make sure everything was on your computer before updating?

  • My iPad conveys that it is disable, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the number board to open with a password.  How do I fix this?

    My iPad conveys that it is disabled, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the scree with the number board to open with a password.  How do I fix this?

    You will need to restore it. The sidebar of your iPad appears on itunes even if you dont enter the passcode. There's the option to restore it. More info:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • My iPad conveys that it is disabled, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the screen to open with a password.  How do I fix this?

    My iPad conveys that it is disabled, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the screen to open with a password.  How do I fix this?

    You will need to restore it. It may not sync, but the iPad's sidebar has to appear you can restore it and it will be as the last time ou synced it to iTunes. For more info:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • In workflow need to check in passed validaitons and check out failed once?

    Hi All,
    Can any one let me know is the following requirement possible?
    In workflow can I able to split records based on validation result? I need to check in passed validations and check out failed validations..
    Regards
    Rajeev

    Hi Rajeev,
    You can try out both branch step and validation step and see which serves your purpose better.
    In branch step you can give multiple validation/validation groups,if result is TRUE take the first branch and check in at STOP.
    If FALSE,take dont checkin at STOP,either cascade or Rollback as the case be.Also here you can call the same or other Workflow.The split branches can later be combined using MERGE or Group.
    Other way can be by using Validation step,setup iteration threshold.here failed jobs will be sent to previous step and passed ones will move ahead in WF.Later you can checkin at STOP and failed jobs would still be in WF in checkout state.
    For your reference :
    http://213.41.80.15/SAP_ELearning/OKEC/nav/content/011000358700000601512007E.PDF
    http://help.sap.com/saphelp_mdm550/helpdata/en/43/e0615a82b40a2ee10000000a11466f/frameset.htm
    Thanks,
    Ravi

  • JMS Adapter (for DI) does not allow passing username and password to JMS connection

    Post Author: PLed76
    CA Forum: Data Integration
    JMS Adapter (for DI) does not allow passing username and password to JMS connection. It has those fields only for MSMQ. Our Production environment does not allow us to connect to JMS (we use Tibco EMS) anonymously, so it prevents us from use of Data Integrator. Is there any way to pass those params, or obtain the correct version of JMS Adapter, or obtain source codes of the JMS Adapter so we can correct them ourselves (we can send you the corrected sources back) ? Thanks in advance for any help. (PL)ed76 Renaissance Capital

    Bump - Were having the same issue.
    Has anyone found a way to connect to Tibco with a user/pwd?
    Version 14.0.297.

Maybe you are looking for

  • Adobe reader X1 problems

    Adobe reader X1 is not working and I want to uninstall then reinstall but it wont let me. I get this msge"this patch package could not be opened. Verify that the patch package exists and that you can access it or contact the application vendor to ver

  • Saving Illustrator .ai file as a .jpg

    I have Creative Suite 3 on Windows. In Illustrator how do I save a file as a .jpg? Also how do I make the coloured text white? I have managed to change the body of the text but I can't seem to change the ® into white characters. I can't seem to strok

  • Ipad 3 with Sim Card. Two Different Countries.

    Hi, I'm planning on buying an ipad 3 with a sim card. I'm from the uk, but am living in germany for a year..If I purchase the ipad in england but buy a sim from germany will this still work? And when I come back to england will I be able to change it

  • Mapbuilder import TTF - Wingdings

    Hi. Mapbuilder (v.11.1.1.0.0) can't see true type fonts like: Wingdings or Webdings in an "import true type font". It's empty after choosing one of this fonts and importing it into mapbuilder. Why ?? Edited by: Monteusz on 2009-11-24 09:20

  • K9vgm-v - Problems with 500g HD and Vista

    I installed Vista last night (fresh install) and have a 500g, unformatted hard drive (a Seagate NL35 ST3500641NS) that I just purchased from New Egg.  The Hard Drive is a SATA drive. I've enabled the SATA as IDE in the bios, and have the drive plugge