Challenging Question : ABAP TRANSFER statement Issue

Hi SAP Gurus,
I am using statment
TRANSFER  g_str  TO  p_unixf   LENGTH 512.
to write the  <i>g_str</i>  to  UNIX  file  <i>p_unixf</i>
I have some <b>BLANK</b> spaces at the end of each record which I want to retain in the UNIX FILE.
But TRANSFER statment writes only character ignoring the BLANK spaces at the end.
All the record length should be of 512 in UNIX FILE irrespective of what data contains in the record.
Help is much appreciated!
Thanks
Shital

Try use a field type X at end of structure of internal table will be transfered to file.
For each line of internal table, place at type X field the value "0D" (CR).
DATA: BEGIN OF ti_file OCCURS 0,
       tipo(3),    
       space1(1),
       seq(4),
       cnpj(14),
       ano(1),
       retif(1),
       stcd1(6),
       valor(14),
       cnae(7),   
       space10(10),
       cr TYPE vv_crlf VALUE '0D',     "Use this field to line wrap with spaces
      END OF ti_file.
For each line of ti_file:
LOOP AT ti_file.
" Fill the fields
ti_file-cr = '0D'.
APPEND ti_file.
CLEAR ti_file.
Regards,
Leonardo Valente
Edited by: Leonardo Valente on Sep 8, 2009 2:48 PM

Similar Messages

  • Problem saving "space" in ABAP TRANSFER statement

    Hello all,
          I have an internal table that I loop through and write that data to a file using TRANSFER statement. Here is an exmaple of my code:
    data: l_xml_out type string.
    BEGIN OF itab_out OCCURS 0,
                record(some length) TYPE c,
             END OF itab_out,
    Here is an example Itab_out data
    RECORD1:
    " Bon Appetit "
    RECORD2:
    "Managment Co"
    LOOP AT itab_out
                  INTO l_xml_out.
            TRANSFER l_xml_out TO "somefile".
          ENDLOOP.
    When I transfer to file record1 is appended to record2 which i sfine but I am losing space for example I want "Bon Apetite Management Co" but I get "Bon ApetiteManagementCo"! (Space is gone). How do I preserve the space? I did reserach on SDN but could not get my problem resolved. Please provice any feedback if you can.
    Thanks.
    Mithun

    >
    Mithun Dha wrote:
    > Sorry, I might not have provided you all information. I know concatenate but my internaltable has like 20000 records and we are looping through those records into "string" type data variable and transferring to file. The internal table records I gave in my posting was just an example. Thanks for your quick feedback.
    >
    > Mithun.
    So, Can't you concatenate to string type? Yes, you have to concatenate before transfer for 20000 records.
    data: l_text(20) type c,
          l_text1(20) type c,
          l_string type string.
    l_text = 'This is text'.
    l_text1 = 'This is text1'.
    CONCATENATE l_text l_text1 into l_string SEPARATED BY space.
    write the concatenate within the loop and then transfer the string to data set.
    Edited by: Sampath Kumar on Nov 10, 2009 8:04 AM

  • Performance of Transfer Statement

    Hi,
      I'm working in a MDMP - Unicode Conversion Project. My job primarily is to enable Custom ABAP code for Unicode syntax.
        I have a generic program which takes the names of tables and fields and the destination path from a file and extracts those table fields to the destination share using transfer statement.
       It is found that this program extracts characters of multiple languages to single file. In the original program there is a single select - endselect loop within which there is a transfer statement.
       Now to accomadate different languages in the same file. I'm collating the data belonging to one language in internal tables and writing the content to the file with a different codepage each time opening and appending to the same file. The approach works good but i face performance issues.
       In the modified version the transfer statement is taking more time than what the transfer statement in the original program is taking. I have no clue of this behaviour. Can someone tell why this change in behaviour of the transfer statement?

    Hi Vijay,
       Let me explain you in detail.
      if i have a transfer statement like this, it is taking approximately 12 seconds to download nearly 50 MB content.
       select * from (extract_info-table) into <tblwa>
       where (where_clause).
       move <tblwa> to o_string.
       transfer o_string to file.
       endselect.
    if i code it this way.
      select * into table <table> from
      (extract_info-table) where (where_clause).
      perform download_file tables <table>
                            using file.
      form download_file tables data_tab
                         using file.
         loop at data_tab.
            transfer data_tab to file.
         endloop.
      endform.
    it is taking 10 times more time ~ 120 secs to download the same content.

  • Challenge Questions

    Hi All
    I changed the number of the challenging questions and the required answers as well under OIM system configurations from 3 to 1 but right now when I am trying to user the "forgot password" functionality from OAM login page (we have OIM OAM integration scenario) then I am getting the following error message.
    can you please let me know if changing the number of the challenging questions requires some other changes in the system configurations or this is a product issue ?
    Thanks All
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=pt1:_d_reg:region0:1:ol1
    StackTrace:
    anonymous(x217)
    [AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=pt1:_d_reg:region0:1:ol1]
    anonymous(x246)
    [AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=pt1:_d_reg:region0:1:ol1]
    anonymous()
    anonymous(x58)
    [AdfRichDocument [oracle.adf.RichDocument] id=d1,AdfRichForm [oracle.adf.RichForm] id=pt1:ptf1,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:_sh_ptpsl4,AdfPageCustomizable [oracle.adf.page.PageCustomizable] id=pt1:_sh_pc1,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:ptpsl1,AdfRichPopup [oracle.adf.RichPopup] id=pt1:_diags:_dgTfRg,AdfRichPopup [oracle.adf.RichPopup] id=pt1:_diags:_unswar,AdfRichPopup [oracle.adf.RichPopup] id=pt1:_diags:_maxtab,AdfRichPopup [oracle.adf.RichPopup] id=pt1:_diags:_unsm,AdfRichPopup [oracle.adf.RichPopup] id=pt1:_diags:_sh_mcp0,AdfRichPopup [oracle.adf.RichPopup] id=pt1:_diags:p1,AdfRichPanelSplitter [oracle.adf.RichPanelSplitter] id=pt1:ptps1,AdfRichNavigationPane [oracle.adf.RichNavigationPane] id=pt1:_shgnp1,AdfRichStatusIndicator [oracle.adf.RichStatusIndicator] id=pt1:ptsi1,AdfRichDecorativeBox [oracle.adf.RichDecorativeBox] id=pt1:ptdb1,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:pt_psl1,AdfRichDecorativeBox [oracle.adf.RichDecorativeBox] id=pt1:pt_db1,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:ptpsl2,AdfRichNavigationPane [oracle.adf.RichNavigationPane] id=pt1:pt_np1,AdfRichCommandNavigationItem [oracle.adf.RichCommandNavigationItem] id=pt1:pt_np1:_modp_0,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:ptpsl3,AdfRichPanelSplitter [oracle.adf.RichPanelSplitter] id=pt1:ps1,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:_sh_psl4,AdfRichDecorativeBox [oracle.adf.RichDecorativeBox] id=pt1:_sh_db2,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:_sh_ps2,AdfRichNavigationPane [oracle.adf.RichNavigationPane] id=pt1:_sh_np2,AdfRichCommandNavigationItem [oracle.adf.RichCommandNavigationItem] id=pt1:_sh_np2:_dtb_0,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:_sh_psl1,AdfRichRegion [oracle.adf.RichRegion] id=pt1:_d_reg:region0,AdfRichDecorativeBox [oracle.adf.RichDecorativeBox] id=pt1:_d_reg:region0:1:db1,AdfRichPanelStretchLayout [oracle.adf.RichPanelStretchLayout] id=pt1:_d_reg:region0:1:psl1,AdfRichTrain [oracle.adf.RichTrain] id=pt1:_d_reg:region0:1:challengeResponseTrain,AdfRichCommandTrainStop [oracle.adf.RichCommandTrainStop] id=pt1:_d_reg:region0:1:challengeResponseTrain:0:_afrStopNavItem,AdfRichCommandTrainStop [oracle.adf.RichCommandTrainStop] id=pt1:_d_reg:region0:1:challengeResponseTrain:0:_afrStopNavItem,AdfRichCommandTrainStop [oracle.adf.RichCommandTrainStop] id=pt1:_d_reg:region0:1:challengeResponseTrain:1:_afrStopNavItem,AdfRichCommandTrainStop [oracle.adf.RichCommandTrainStop] id=pt1:_d_reg:region0:1:challengeResponseTrain:1:_afrStopNavItem,AdfRichCommandTrainStop [oracle.adf.RichCommandTrainStop] id=pt1:_d_reg:region0:1:challengeResponseTrain:2:_afrStopNavItem,AdfRichCommandTrainStop [oracle.adf.RichCommandTrainStop] id=pt1:_d_reg:region0:1:challengeResponseTrain:2:_afrStopNavItem,AdfRichPanelHeader [oracle.adf.RichPanelHeader] id=pt1:_d_reg:region0:1:challengeResponseHeader,AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=pt1:_d_reg:region0:1:requiredFieldLabel,AdfRichCommandButton [oracle.adf.RichCommandButton] id=pt1:_d_reg:region0:1:backButton,AdfRichCommandButton [oracle.adf.RichCommandButton] id=pt1:_d_reg:region0:1:nextButton,AdfRichCommandButton [oracle.adf.RichCommandButton] id=pt1:_d_reg:region0:1:saveButton,AdfRichCommandButton [oracle.adf.RichCommandButton] id=pt1:_d_reg:region0:1:cancelButton,AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=pt1:_d_reg:region0:1:ol1,AdfRichDialog [oracle.adf.RichDialog] id=d1::msgDlg,AdfDialogServicePopupContainer [oracle.adfinternal.DialogServicePopupContainer] id=afr::DlgSrvPopupCtnr]
    anonymous()
    [[object Event]]
    Thanks

    This seems more of browser issue. Refer here:
    Incorrect use of AdfRichUIPeer
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=1030620
    I hope this helps.
    regards,
    GP

  • Challenge Question Detection and Redirection

    After installing OIM 11g, users are not automatically redirected to set challenge questions on first login. None of the users have challenge questions set and, as I understand it, OIM should detect this and redirect the user to the set challenge page before proceeding.
    Where can I assure this check is set and/or modify it?

    I didn't run the SQL, but here is the server.out error:
    <Mar 28, 2012 11:15:52 AM CDT> <Error> <oracle.adfinternal.controller.state.SessionBasedScopeMap> <ADFC-62004> <ADFc: Scope object serialization failed (object not serializable), scope='pageFlowScope[taskflows/forgotpassword/ForgotPassword-taskflow.xml#ForgotPassword-taskflow]', objectKey='challengeQuestionsBean', objectType='oracle.iam.forgotpasswordtaskflow.backing.taskflows.ChallengeQuestionsDisplayBean'.>
    <Mar 28, 2012 11:15:52 AM CDT> <Error> <oracle.adfinternal.controller.state.SessionBasedScopeMap> <BEA-000000> <
    java.io.NotSerializableException: javax.security.auth.login.LoginContext
    at java. ...
    OIM is seeing that questions are not set.

  • Replace B2BUA with a new one, without loosing transfer states

    I'm having some issues with replacing my B2BUA for transfer purpose.
    I have a link between 2 participant by using a B2BUA. I want to transfer one of these participants into another B2BUA, and that new B2BUA will repaces the previous one. I can accomplish this succesfully without any troubles, by using self-transfer and B2BUA
    utilitize.
    But when the link is established in B2BUA between two participants, when creating a new B2BUA, the participants can still talk untill the new B2BUA is established (this is the issue).
    I doesn't loose the link of participant in Call leg 1, since I'm using a Self-transfer leaving the call state as incoming. But if I call BeginTerminate() of the 1st B2BUA while establishing the 2nd B2BUA, then I'll loose my transfer states of the first Call,
    and I'm using this event state to tell me when a transfer is succesfully done.
    How can I cancel the stream between the two participants in the first B2BUA, as soon as I begin to establish the second B2BUA??

    If either leg of the B2B is terminated, the B2B call is terminated. In a transfer scenario the leg of the participating in the self transfer will end before the transfer itself is completed, leading to an OperationFailureException on the EndTransfer. 
    There is really no way to avoid this, so you should just expect it.
    Here is a snip from one of my test programs:
    private void InitiateSelfTransfer()
    Console.WriteLine("Initiating self-transfer on p2p call...");
    //Copy inCall since we will replace it with the new inCall prior to the completion of the transfer.
    AudioVideoCall p2pOldInCall = (AudioVideoCall)inCall;
    //Pass a reference to this instance in the Context so the new inbound call can reattach to this session.
    p2pOldInCall.ApplicationContext = this;
    p2pOldInCall.TransferStateChanged += new EventHandler<TransferStateChangedEventArgs>(oldInCall_TransferStateChanged);
    CallTransferOptions cto = new CallTransferOptions(CallTransferType.Attended);
    //Execute the transfer.
    Console.WriteLine("Beginning Self-Transfer...");
    try
    p2pOldInCall.BeginTransfer(p2pOldInCall, cto,
    ar =>
    Console.WriteLine("Self-Transfer Completed...");
    try
    p2pOldInCall.EndTransfer(ar);
    Console.WriteLine("Self-Transfer was successful!");
    SendTransferNotification(200, "Succeeded at self-transfer");
    //In this scenario the BackToBackCall seems to always terminate the call before we are made aware the transfer is complete.
    //This operation has to execute as Attended, so we simply catch the exception generated, it doesn't seem to cause us any problems.
    catch (OperationFailureException)
    Console.WriteLine("Exception ignored on self-transfer...");
    SendTransferNotification(487, "Call already terminated...");
    catch (RealTimeException ex)
    SendTransferNotification(503, "Failed on self-transfer of inbound leg");
    Console.WriteLine(ex);
    , null);
    catch (InvalidOperationException iOpEx)
    Console.WriteLine("Invalid Operation Exception: " + iOpEx.ToString());

  • Challenge Question Max Length

    Hi,
    We're running into an issue with one of the challenge questions that we've defined. The length of the question is about 74 characters long, and we're able to save it in the 'Lookup.WebClient.Questions' lookup def successfully. The problem occurs when a user tries to answer this particular question, the page just refreshes there's no error on the screen but the logs show an error while trying to save the answers:
    ERROR,28 Jan 2010 13:14:47,573,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: tcUserOperationsBean/setChallengeValuesForSelfData encounter some problems: maoErrors:Insert failed.
    ERROR,28 Jan 2010 13:14:47,573,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: tcUserOperationsBean/setChallengeValuesForSelfData encounter some problems: Insert failed.
    Thor.API.Exceptions.tcAPIException: Insert failed.
         at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.setChallengeValuesForSelfData(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.setChallengeValuesForSelf(Unknown Source)
         at com.thortech.xl.ejb.beans.tcUserOperationsSession.setChallengeValuesForSelf(Unknown Source)
         at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.setChallengeValuesForSelf(tcUserOperations_voj9p2_EOImpl.java:2128)
         at Thor.API.Operations.tcUserOperationsClient.setChallengeValuesForSelf(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy61.setChallengeValuesForSelf(Unknown Source)
         at com.thortech.xl.webclient.actions.tcChangeChallengeQuestionsAction.saveChallengeAnswersConfirm(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcChangeChallengeQuestionsAction.execute(Unknown Source)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    I did some investigating and found that if a questions's 'Code Key' (which is the part that's displayed on the form) happens to be longer than 63 characters this issue occurs.....does anyone know of any workarounds to this....maybe some configuration somewhere???....Thanks in advance for your help!

    I am able to see error on the console.
    Try this command on database of OIM:
    ALTER TABLE PCQ MODIFY PCQ_QUESTION VARCHAR(200);
    And then try.
    Let me know the results.

  • Questions on Room State

    Hey guys,
         I got some questions on room state:
         1) Does the room state actually take some effect or just an indicating flag? For example, if a room state is ROOM_STATE_ENDED, will it prevent any incoming user connection?
         2) I tried to login as a guest, the room setting is HostNotArrived. Then I logged in as an owner. The state was switched to Active. The result seems fine until now. However, when I quit the owner app by closing the brower tab, and checked the quest page, the room state was still in Active, rather than switch back to  HostNotArrived or any other state. Is it an expected result? How can I let the room state update to date if the owner quit in this way?
         3) For my scenario, I'd like to build a room only avaiable when owner arrived. That is, if a guest arrived before the owner arrived or after the owner left, he will not be allowed to do anything , even the connection should be rejected. Is that possible?
         Thanks a lot!
    Jinni

    Hi Jinni,
      1) It should prevent any incoming connection other than OWNERs of the room.
      2) HostNotArrived happens only before a room has been "kicked off" by the owner, and not afterwards (even if the owner has left the room, it's still fair to say he had "arrived").
      3) I'm not sure there's a perfect way to do this yet. We'll be looking into this use case, which feels like you need some "server-to-server" integration : the ability to detect an owner has left, then a way to shut down the room. Does that seem right to you? For now, a quick way of achieving the functionality (if not the security) is to have your clients detect that there's no owner, and disconnect.
       hope that helps
       nigel

  • OIM.. challenge questions one at a time

    Hello,
    I have a requirement in OIM wherein when a user logs, the challenge questions needs to be posted one a time, rather than all the questions. I could not find any hint from system properties or in tables of OIM. Wanted to know if this do-able and if yes, what parameters need to be set?
    Any help is appreciated.
    Thank you..

    Does that mean, I have to write a custom code for this feature??

  • ABAP "WRITE" Statements for Debugging

    Just curious to know if one can use ABAP write statements in Update Rules for debugging and auditing, and where the results are actually written to, and if they're accessible via the AWB.
    Thank you.

    Jerry you can write to the monitor from within the update rules.
    The debug message you were going to write out instead go ahead and append your message to the monitor structure.
    FORM compute_data_field
    TABLES   <b>MONITOR</b> STRUCTURE RSMONITOR  
    USING    COMM_STRUCTURE LIKE /BIC/CS8ZTESTODS
             RECORD_NO LIKE SY-TABIX
             RECORD_ALL LIKE SY-TABIX
             SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
    CHANGING RESULT LIKE /BIC/VZTESTCUBT-INVCD_QTY
             RETURNCODE LIKE SY-SUBRC
             ABORT LIKE SY-SUBRC.
    You will then be able to view any messages you have added to the monitor in the monitor.
    Hope this helps.
    Cheers

  • Transfer State from one WAD to another

    Hello friends.
    I have a trouble using the command TRANSFER STATE in BW 7.0
    I need to trasfer the navigation state of one dropdown box from wad 1 to wad 2.  I already do that, but the problem is that when the second wad is open, the dataproviders that exists in wad are not being filtered by the characteristic of the dropdown box.
    I'm using a variable in the dropdown box. I'm using the same variable in both wads (and in both dropdown boxes) but the dataproviders of wad 2 ar not being filtered when I trasnfer the status.
    How can I get the dataproviders filtered with the value of the dropdown box when transfer state ????
    Thanks in advance.

    Hi,
    the command TRANSFER_STATE will copy the items / data providers  with the same logical to the target web template (if you have choosen to transfer them in the command settings). Meaning, that if you have a data Provider DP_1 in both Web Templates, DP_1 in the target Web Template will have exactly the same state (and therfore also the filter values, as well as the drill down, ... are the same)
    So in fact in your case TRANSFER_STATE should be done (if this is really the correct scenario) for the Data Provider and not for the item, as the Dropdown will always reflect the state of the underlying data provider.
    What you want to achieve sounds more like a RRI (jump to another Web Template while transfering all the filter values, variables, ...)
    Heike

  • Where to do the abap sql statement in sapscript (PO)

    Hi, all.
    Hope anybody can guide me to find a solution.
    My situation now is i have to do a purchase order in SAPSCRIPT starting from a standard po. I already found out all the related details as below:
    Program           SAPFM06P
    FORM routine      ENTRY_NEU
    Form              MEDRUCK
    So, now the problem now is I have to add some more data on my print out PO. After figure out for some time, I don't know where to do my abap sql statement. Like example, I want to retriece some data from the ADRC table. I opened the standard program SAPFM06P to add in the some sql statement, but i dun know where should i add in. Bcz if we straight away put the related ADRC field in our sapscript, it is useless, right?
    Thanks in advance.

    Thanks a lot.
    So, how should i add in code in order to fetch the data frm ADRC by using that routine. Because i only the codes like below. I don't where should i start add in.
    Form entry_neu using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
           exporting
                ix_nast        = nast
                ix_screen      = ent_screen
           importing
                ex_retco       = ent_retco
                ex_nast        = l_nast
                doc            = l_doc
           changing
                cx_druvo       = l_druvo
                cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
           exporting
                ix_nast        = l_nast
                ix_druvo       = l_druvo
                doc            = l_doc
                ix_screen      = ent_screen
                ix_from_memory = l_from_memory
                ix_toa_dara    = toa_dara
                ix_arc_params  = arc_params
                ix_fonam       = tnapr-fonam          "HW 214570
           importing
                ex_retco       = ent_retco.
    endform.
    Or i come wrong place to add in any coding. Plz guide me.
    Thanks in advance.

  • Question about 'write' statement

    Hi,
    A question on write statement.
    I have a internal table itab which has field var. I am looping at this itab and writing horizontal heading output like below.
    example on the output heading:
    (3 spaces) itab-var (20 spaces) itab-var (20 spaces) itab-var.
    the coding is:
    loop at itab.
    write: 3 itab-var.
    endloop.
    I want to increase the space by 20 for every loop. How to increase this 3 by 20? Can we accomplish this way?
    Thank you for your time.

    hi krishen,
    just add 20 inside the loop , so that after every loop its value increases by 20
    for example:
    data: v  type i.
    v=3.
    do 3 times.
    write: at v(20).
    v=v+20.
    end do.
    hope it will help you
    regards
    Rahul sharma
    Edited by: RAHUL SHARMA on Sep 4, 2008 7:47 AM

  • Question about delete statement

    I have question about delete statement...
    i am performing some simple delete statement against one table..but its taking so long..How can we check whether particular delete statements actually deleting records or not..?

    Is the associated select-statement returning rows or not?
    If yes -> delete is deleting
    If no -> delete is just using CPU-cycles
    To tune the delete-statement, you have to tune the corresponding select-statement. To tune the select-statement, you want to read the thread When your query takes too long ...

  • I need to reset my challenge questions

    I need to reset my challenge questions.

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    Or you can email iTunes Support at iTunes Store Support.
    If all else fails:
      1. Go to: Apple Express Lane;
      2. Under Product Categories choose iTunes;
      3. Then choose iTunes Store;
      4. Then choose Account Management;
      5. Now choose iTunes Store Security and answer the bullet questions, then click
          Continue;
      6. Sign in with your Apple ID and press Continue;
      7. Under Contact Options fill out the information and advise iTunes that you would
          like your security/challenge questions reset;
      8. Click Send/Continue.
    You should get a response within 24 hours by email.
    In the event you are unsuccessful then contact AppleCare - Contacting Apple for support and service.
    Another user had success doing the following:
    I got some help from an apple assistant on the phone. It is kind of round about way to get in.
    Here is what he said to do and it is working for me...
      a. on the device that is asking you for the security questions go to "settings", > "store" >
          tap the Apple ID and choose view"Apple ID" and sign in.
      b. Tap on payment information and add a credit/debit card of your preference then select
          "done", in the upper right corner
      c. sign out and back into iTunes on the device by going to "settings"> "store" > tap the
          Apple ID and choose "sign-out" > Tap "sign -in" > "use existing Apple ID" and you
          should be asked to verify your security code for the credit /debit card and NOT the
          security questions.
      d. At this time you can remove the card by going back in to edit the payment info and
          selecting "none" as the card type then saving the changes by selecting "done". You
          should now be able to use your iTunes store credit without answering the security
          questions.
    It's working for me ...I just have to put in my 3 digit security pin from the credit card I am using.
    Good Luck friends!

Maybe you are looking for