Issue regarding SAP/GPA parameters

Issue      :    When Sales Order, Delivary, Transfer Order, Billing is created by one user , and if the same user creates Sales Return Order(VA01) it is working fine. But if any other user creates this Sales Return  then it is not showing Sales Return AMOUNT value which has to be copied from the Billing Dcoument.
                   This Sales Return transaction calling Form Routine which contains code to get Sales Return value . when same user who created  Sales Order, Delivary, Transfer Order, Billing    creates Sales Return then SPA/GPA PARAMETERs used in Form Routine program to get Reference Billing Document no.,etc , are getting populated by values , but if different user creates Sales Return this SAP/GPA PARAMETERS is not getting populated. i.e
DATA V_VBELN TYPE VBELN.
GET PARAMETER ID 'VF' FIELD V_VBELN .
why it is not getting populated plz help

Hi M Kumar,
Please note SPA / GPA are user specific, hence if same user creates Sales Return Order values will be copied from previously created document, while it will not be copied for other user.
Set Parameter : "Writes the contents of the field f to the global user-specific SAP memory and the local transaction-specific SAP memory under the ID pid. "
Regards,
Mohaiyuddin

Similar Messages

  • Issue regarding sap script pages

    Hi all ,
       my issue is regarding the medruck. when i click on the print preview option on me23n, the sap script attached(that is medurck) will be printed. in my case the sap script is zmm_medruck(the zcopy of medruck). now, the print out of the sap script is 2 or  3 or 5 paged depending upon the p.o. number given.
    for example for a p.o. number 2100001564, the sap script contains 4 pages. now, my issue is , the print out should contain only last 2 pages or only 3 rd page.(that is without all pages, we want only specific pages of the sap script to be printed). how to do this. plz reply fast. points will awarded.
    this is urgent issue.
    thanking u in advance,
    sreenu.

    Hi all ,
       my issue is regarding the medruck. when i click on the print preview option on me23n, the sap script attached(that is medurck) will be printed. in my case the sap script is zmm_medruck(the zcopy of medruck). now, the print out of the sap script is 2 or  3 or 5 paged depending upon the p.o. number given.
    for example for a p.o. number 2100001564, the sap script contains 4 pages. now, my issue is , the print out should contain only last 2 pages or only 3 rd page.(that is without all pages, we want only specific pages of the sap script to be printed). how to do this. plz reply fast. points will awarded.
    this is urgent issue.
    thanking u in advance,
    sreenu.

  • Issue Regarding SAP HR Implimentation

    Hi,
    Can anybody provide me the list of SAP HR implemented compnies of Delhi/NCR in Last 2 years.
    Thanks & Regards,
    Geeta Chaudhary.
    Have you Got the answer for this question in your earlier thread

    http://saphrexpert.blogspot.com/search/label/payroll
    http://saphruser.com/category/sap-payroll/

  • Issue Regarding SAP NetWeaver AS ABAP

    Recently I have downloaded SAP NetWeaver Application Server ABAP  7.02 trial SP6 32-bit and installed on my machine.Despite having met all the systems requirments and settings I am not able to work with Web Dynpro for ABAP. At the beginning it asks for activating some services using t-code SICF. There is one service path which it ask to activate do not exist in the service hierarchy due to which I am not able to load the view designer. Please can anyone suggest me any solution to solve this problem?
    My next issue with the same version of NetWeaver is that it provides only Airline Database tables and tcodes. If I tried to work with some other applications like SD, MM, FI the system prompts me the message saying the specified t-code or table in ABAP dictionary does not exist.My question is which version of NetWeaver would help me get fullfledged IDES system? Please if anyone aware of it kindly help me. Currently I am downloading SAP NetWeaver Application Servicer ABAP 7.03 SP04 trial 64-bit. My only problem is I should get to work with Web Dynpro ABAP and with other applications ie SD, MM, FI and not limited to only Flight Database. Which version of SAP NetWeaver would provide me fullfledged IDES System?
    Seeking Valuable suggestions solutions on the above subject matter.
    Thanks

    Hi Omkar,
    Can you specify what is path in TA SICF that needs to be activated and it not present in your test NetWeaver ABAP system? As per documentation it is service called: /default_host/sap/bc/webdynpro please double check if it is present in your installation.
    To your 2nd point. Actually none of test versions of NetWeaver have applications like SD, FI, .. installed in. As you said you need to have full flown SAP ECC installation or IDES system to run those. There are some companies out there which offer IDES access. However some of them are not SAP partners and their services are most likely illegal. Be careful while dealing with such a sites.
    cheers
    m./

  • Issue : Regarding SAP Note 1465628

    Dear All,
    we have to Implement the SAP Note No 1465628 , For that During manual Corrections , we are Unable to Upload the HR_IN_ESI_005_99 , it is saying
    ERROR Ocuured unknown file Format (unknown)
    Our System is ECC6 , Please help on this to Get the SAP note Apply.
    Thanks & Regds
    Manish
    Edited by: Sikindar on Jun 10, 2010 5:18 PM

    Regarding your query,  to use the transaction SFP you have to install and configure ADS (Adobe Document Services). Can you please check whether you have done the necessary configuration or not?
    Please have a look at note 894009 and the reference note attached to it. 
    Regards
    Ramana

  • Issues regarding SAP note 505030

    Hello,
    We are going to have an upgrade in our system to SRM 7.0. We are
    designing our scenario to have shopping carts creating purchasing
    requisitions that will return to Sourcing Cockpit and become a new
    shopping cart. However, we found the note 505030 that says:
    If you create purchase requisitions in the R/3 system from SRM shopping
    carts, then no SRM shopping cart may be created from these purchase
    requisitions in the subsequent process, which in turn creates a
    purchase order in the R/3 system. Even though it is technically
    possible at the moment, this causes problems in the subsequent process
    (goods receipt confirmation).
    We have the following questions:
    1) Does the problem happen only in SRM goods receipt confirmation or
    also in transaction MIGO in ECC?
    2) What exactly is the problem in the goods receipt confirmation? Is
    there any development (BADI) that could fix it?
    Has anyone implemented this scenario?
    Thanks, Thaí

    I don't have experience in implementation of this scenario but I think the problem will be now you have two SC references to follow on documents in backend and will have issue while updating backend data in SRM through get status job.

  • Issue regarding Planning layout is not getting rendered and is dumping at : CL_RSDRC_TREX_QUERY_LAYER ~ _GET_PARTPROVS_WITH_TREX_PART in SAP TPM IP

    Gurus,
    I am facing an issue regarding SAP TPM IP ( HANA)
    I have 3 Infoproviders
    Planning infocube, Planning DSO1, Planning DSO2 and i created multiprovider and added these 3 infoproviders into it. I have created Aggregation level on multiprovider. Created Bex Input ready query on Aggregation level.
    Issue is  Planning layout is not getting rendered and is dumping at : CL_RSDRC_TREX_QUERY_LAYER ~ _GET_PARTPROVS_WITH_TREX_PART.
    I tried debugging it and found it is trying to read   i_r_pro -> n_ts_part. It is populated with only 3 values (i.e. 2DSOs and 1 Cube), whereas <l_partprov>-partprov is referring to Aggergation level, hence read statement isn't successful, it is dumping.
    The class CL_RSD_INFOPROV_CACHE->GET() method is trying to populate the N_TS_PART.N_TS_PART uses P_R_INFOPROV table which seems to be already populated.  So, I debugged all the below methods to find out how the P_R_INFOPROV but couldn't find any clue.
    Can any one help,it would be really help.
    Thanks
    Ashok

    Hello Gregor,
    On the launch of planning layout it throws an error message:
    Planning is not possible RSCRM_IMP_CORE008.
    When I debugged, i got to a point wherein
    particular Real Time Planning DSO is
    not getting retrieved under the MultiProivder in below class.
    Class: CL_RSCRM_IMP_ACTIONS_SERVICE, Method: GET_INFOPROV is not
    returning the real time Info-Provider Name(i.e. Planning DSO)
    underlyingthe Multiprovider.
    I've also tried to run the report mentioned by you for the Multiprovider but issue still exists.
    Let me know, if you have any pointers on this topic.
    Thanks,
    Jomy

  • SAP QM Issues regarding follow-up action after Usage Decision

    Dear Gurus -
    Kindly need your expertise to resolve these issues regarding follow-up action.
    1. After taking the UD i need to trigger the follow-up action to send an email with the long text to a group of people. As per standard SAP the email goes to the person taking the UD. Kindly can some one explain what & where do i need to make the changes. Also please let me know what is the customized Email ID table where mail ID's will be stored which fuction module can extract.
    2. Can i also use the same functionality for partial lots during inprocess inspection. I need to send an email to a group in case the valuation is rejected for that operation.
    Any response is highly appreciated.
    Thank You.
    Edited by: sunil t on Jan 6, 2010 7:03 PM

    Hi
    Please go through my recent thread
    Incomming Inspection Auto mail if Rejected
    Regards
    Sujit

  • One issue regarding PPDS OP.confirmation from Legal Non-SAP system

    Dear Experts
    we met a BAPI function issue regarding PPDS Operation.confirmation from Legal Non-SAP system.
    scenario is as following:
    we want to build the interface between PPDS and non-SAP system, regarding OP. and order confirmation inbound processing.
    now we input simulated inbound date and test using BAPI: BAPI_MOSRVAPS_CONFOPRMULTI
    but we find a problem, even we set different value for fields ‘ duration’ in function. after call BAPI, It didn't reflect the 'net duration' or 'remaining duration', these fields not changed through check in Tcode:/SAPAPO/RRP3 for single operation.
    In the meanwhile , but it works for fields 'confirmed Yield' and fields 'confirmed Scrap' for single operation.
    my questions is that: if we need to synchronize the operation confirmation( including confirmed yield,confirmation scrap, duration),do we use the correct BAPI for this or do we need an additional BAPI, please hints.
    Thanks a lot! any feedback would be welcome!
    Best Regards
    Kevin

    Hi Kevin,
    Yes you use the right BAPI.
    you have to use table OPERATION_CONFIRMATION.
    You cannot just set the duration. You have to trigger time event confirmations.
    The field duration according to the documentation currently not supported.
    You need to use CONFIRMATION_TYPE
    0100 Start of Setup
    0150 End of setup
    0200 Start of processing
    0300 Partially complete
    0350 Complete
    Not sure if all confirmation types are supported by the BAPI.
    You can also set start and end time but not sure either whether it is supported or not.
    Regards,
    Uli

  • Performance issues with SAP BPC 7.0/7.5 (SP06, 07, 08) NW

    Hi Experts
    There are some performance issues with SAP BPC 7.5/7.0 NW, users are saying they are not getting data or there are some issues while getting data from R/3 system or ECC 6.0. Then what things do I need to consider to check, such as what DataSources or Cubes I need to check? So, how to solve this issue?
    What things I need to consider for SAP NW BI 7.0 u2013 SAP BPC 7.5 NW (SP06, 07, 08) Implementation?
    Your help is greatly appreciated.
    Regards,
    Qadeer

    Hi,
    New  SP was released in February, and now most of the new bugs should been caught ,This has a Central Note. For SP06 it's Note 1527325 - Planning and Consolidation 7.5 SP06 NetWeaver Central Note to fix any issues. Most of the improvements in SP06 were related to performance, especially when logging on from the BPC clients.There you should be able to find a big list of fixes/improvements and Notes that describe those. Some of the Notes even have test description how to reproduce that issue in the old version.
    hope this will help you
    Regards
    Rv

  • SAP MII function issue in SAP MII 14.0

    Hi,
    Currently I was working on some content up gradation work in SAP MII 14.0 , but while working, I have got a strange think regarding SAP MII Functions. We have developed the same code in SAP MII 12.2 and faced the issue while migrating to 14.0. The issue is as follows,
    The function we have used in 12.2 is getvalue(name) as in the below screenshot,
    but while we have migrated to 14.0, then we saw the function has updated into getvalue(map, key) in 14.0
    I have no idea why parameter of the existing function got updated, but the problem is if someone want to migrate the existing code from 12.2 to 14.0 using such of function then he/she can get a "Conversion Exception" and at that time it will become bit hectic to identify the issue and change the logic to handle this in all the places.
    Regards,
    Suman

    Hello Suman,
       I guess it is a bug in MII 14.0. The help doc has the getValue(name) still. However, the newer function is not present in the same. I guess it was not documented. I guess, the getValue(map, name) is a newer function which somehow replaced the older one.
    I would suggest you to raise a support ticket. According to me, the getValue(name) and getValue(map, name), both should exist.
    Regards,
    Tufale Ashai.

  • Issue regarding job SAP_CCMS_MONI_BATCH_STARTUP_DP

    Hi,
    We are facing an issue regarding an event triggered job SAP_CCMS_MONI_BATCH_STARTUP_DP.
    Details of the job
    ABAP Program -> RSAL_BATCH_TOOL_STARTUPDISP
    User -> DDIC
    Job Frequency -> Event Periodic
    Event -> SAP_MONITORING_STARTUP_DISPATCH
    We performed Database Refresh and this job has come from Source System. We have deleted the job in Target System but after that also we are getting continuous error message in SM21.
    Error message is as follows:
    14:33:36 DIA  001 000 SAPSYS                EA  S Failed to reschedule a periodic job
    14:33:36 DIA  001 000 SAPSYS                EB  C > Job SAP_CCMS_MONI_BATCH_STARTUP_DP
    On digging down we got the below information in SM21 regarding the error:
    Documentation for system log message EA S :
    This message is output by one of the job schedulers active in the
    system (e.g. time or event-based scheduler). It indicates a problem
    related to the database. An attempt was made to reschedule a periodic
    job and write the respective control data in the database. This error
    occurred for one of the associated database operations (for example,
    INSERT or UPDATE).
    Another cause of the error is failure to generate a new job ID number.
    A subsequent message will point this out.
    The following courses of action are possible:
    Check whether there are any other notes on this problem next to this
    message in the system log, for example direct messages from the
    database interface. These details generally bring you closer to the
    actual cause of the problem.
    The additional information for this message contains the name of the
    database table for which the error occurred.
    If you determine that the error occurred during the SELECT access to
    table TBTCI, the internal report belonging to this background job has
    been deleted. In this case, there is normally a background job in the
    'terminated' status, which ended due to runtime error
    'LOAD_PROGRAM_NOT_FOUND'. Delete this job to prevent further
    unnecessary scheduling on the part of the background processing
    scheduler. You must then reschedule the job concerned.
    As rescheduling of the periodic job could not be completed
    successfully, this job is not executed at first. The background
    processing scheduler takes this job and attempts to schedule it again.
    Depending on the repetition period, gaps in running the background jobs
    can occur for successful scheduling (i.e. the background jobs that were
    unsuccessfully scheduled will be missing in the job overview if their
    execution date elapsed in the meantime).
    Since the next start of the periodic job could not be scheduled
    correctly, there is no entry in the job overview for the planned start
    date.
    If the system failed to generate the job ID number, you will find notes
    on what to do next in the long text of the respective system log
    message.
    We have fixed also Background Object in SM61.
    Kindly help to fix this issue. Looking forward for reply.
    Thanks,
    Soumya

    I am also facing similar issue  . I found below SM21 entries daily . becoz of this my system  performance becomes slows down. no idea which tables are getting filled up  due to this .
    > Job SAP_CCMS_MONI_BATCH_STARTUP_DP
    Failed to reschedule a periodic job
    For temporary fix we have changed the below memory parameters when system performance is poor .
    EM/TOTAL_SIZE_MB = 16384
    ES/SHM_SEGS_VERSION = 2
    ES/TABLE = SHM_SEGS
    But we need to fix these system log entries as still we are getting these errors. If anybody knows the permanent fix of this error that will be great for us.
    Regards
    Krishna

  • Regarding SAP Scripts

    Hi All,
    I have issue in SAP Scripts.
    Issue is : I am calling a BOX command in my Layout set as follows : <b>BOX WIDTH '18.75' CM HEIGHT L_SY_TABIX1 CM FRAME 10 TW</b>
    I that <b>L_SY_TABX1</b> i need to get the value form Print Program,
    Can anybody clarify how can i make varaible L_SY_TABIX1 with value <b>'17.75'</b> with in single quotes.
    shall i need to decalre the L_SY_TABIX1 as &L_SY_TABIX1& & then how can i get single quotes on it.
    Please clarify.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    You dont have to concatenate quotes.
    You can dynamically put any value into a character variable, say,  ht, in your print program.
    Data : ht(10) type c.
    This variable should be within &, in the script. The program takes the value of height without rounding the decimals.
    BOX XPOS 0 CH YPOS '+1.5' LN WIDTH 30 CH HEIGHT &HT& CH FRAME 10 TW
    Thanks,
    Susmitha

  • Offline Form Issue in SAP GRC System

    Experts:
    I am working on creating a Offline Form for GRC Process Control  in SAP GRC System. I have couple of doubts.
    1. In the Form property, there is a new field call 'Inbound Handler'.    The document which I referred says  that, this 'inbound handler' helps in processing the inbound pdf's which comes thro mail.       In this place we need to select the class developed with 2 methods, 1.Create Instance and 2. Handle PDF.    And the document also talks about creating a separate class and referring it in the exit rules (SO50).     I am not sure whether Inbound Handler is a replacement for Exit Rules (SO50) so something else.  Please Clarify.
    2. While generating the PDF file, as you know we call the series of function modules. I have problem with the FM ' CALL FUNCTION fm_name' . When this FM is executed,  normally it should generate the PDF and XML which will be available in fp_formoutput-pdf and fp_formoutput-xml.  But in this system even when there is no issues with the export parameters, the FM is not able to generate the PDF and XML. Both fp_formoutput-pdf and fp_formoutput-xml are coming as EMPTY. Result of which when the FM 'FP_JOB_OPEN' is called it displays the message 'No Job Started' and exits the program.  This same program works find in ECC 6.0 system. Can anyone thro some light on this?
    TYPES: BEGIN OF st_test,
           one   TYPE string,
           two   TYPE string,
           three TYPE string,
           END OF st_test.
    DATA: it_test TYPE st_test  OCCURS 0.
    DATA: wa_test TYPE st_test.
    DATA: fp_outputparams type sfpoutputparams.
    DATA: fm_name TYPE rs38l_fnam.
    DATA: fp_docparams TYPE sfpdocparams.
    DATA: result TYPE sfpjoboutput.
    DATA: fp_formoutput type fpformoutput.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-b02.
    PARAMETERS: p_taskid TYPE grfntaskplan-taskplan_id DEFAULT 'DF492600B7308BF19F5E00237D624FE0' OBLIGATORY,
                p_email  TYPE ADR6-SMTP_ADDR DEFAULT 'a@b' OBLIGATORY,
                p_tmail  TYPE ADR6-SMTP_ADDR DEFAULT 'a@b'' OBLIGATORY,
                p_form   TYPE fpwbformname   DEFAULT 'ZAOF_TEST',
                p_langu  TYPE spras          NO-DISPLAY DEFAULT 'EN',
                p_countr TYPE land1          NO-DISPLAY DEFAULT 'US',
                p_pages  TYPE fppagecount    NO-DISPLAY DEFAULT 2,
                p_loop   TYPE i              NO-DISPLAY DEFAULT 1.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
    START-OF-SELECTION.
    wa_test-one = 'One'.
    wa_test-two = 'Two'.
    wa_test-three = 'Three'.
    append  wa_test to it_test.
    END-OF-SELECTION.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = p_form
      IMPORTING
        e_funcname = fm_name.
    fp_outputparams-getpdf = 'X'.
    fp_outputparams-nodialog = 'X'.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams = fp_outputparams
      EXCEPTIONS
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 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.
    DO p_loop TIMES.
      fp_docparams-langu   = 'E'. "p_langu.
      fp_docparams-country = 'US'."p_countr.
      fp_docparams-FILLABLE = 'F'.
      fp_docparams-dynamic = 'X'.
      fp_docparams-UPDATE_INTERACTION_CODE = 'X'.
      CALL FUNCTION fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
          Ztest      = it_test
        IMPORTING
          /1bcdwb/FORMOUTPUT = fp_formoutput
        EXCEPTIONS
          cancel             = 1
          usage_error        = 2
          system_error       = 3
          internal_error     = 4.
    ENDDO.
    CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        e_result       = result
      EXCEPTIONS
        usage_error    = 1
        system_error   = 2
        internal_error = 3
        OTHERS         = 4.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Thanks in Advance
    Vijai
    Edited by: Thomson VijaiAnand on Apr 21, 2010 11:15 AM

    Hi Thomson 
      I met a similar probleam.
      Could you explain how you get it through?
    Thanks

  • Help regarding SAP SCRIPT

    Hi!
      can any one help me regarding SAP SCRIPT. i unable to write a print program for sap script . can any one can send me sample code using ITCSY structure.
    Thanks in advance.
    Thanks & Regads,
    DurgaPrasad.k

    Hi,
    refer this to write print program:
    <b>The Print Program</b>
    Structure of a print program
    OPEN_FORM function
    CLOSE_FORM function
    WRITE_FORM
    START_FORM function
    END_FORM function
    CONTROL_FORM function
    The print program is used to print forms. The program retieves the necesary data from datbase
    tables, defines the order of in which text elements are printed, chooses a form for printing and
    selects an output device and print options.
    <b>Function modules in a printprogram:</b>
    When you print a form you must used the staments OPEN_FORM and CLOSE_FORM. To combine
    forms into a single spool request use START_FORM and END_FORM.
    To print textelements in a form use WRITE_FORM. The order in which the textelements are printed,
    is determined by the order of the WRITE_FORM statements. Note: for printing lines in the body, you
    can also use the WRITE_FORM_LINES function module.
    To transfer control command to a form use CONTROL_FORM.
    <b>Structure of a print program</b>
    Read data
    Tables: xxx.
    SELECT *
    FROM xxx.
    Open form printing - Must be called before working with any of the other form function modules.
    Must be ended with function module CLOSE FORM
    call function 'OPEN_FORM'.....
    To begin several indentical forms containing different data within a single spool request, begin each
    form using START_FORM, and end it using END_FORM
    call funtion 'START_FORM'.....
    Write text elements to a window of the form
    call function 'WRITE_FORM'.....
    Ends spool request started with START_FORM
    call funtion 'END_FORM'.....
    Closes form printing
    call function 'CLOSE_FORM'...
    OPEN_FORM function
    Syntax:
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
      FORM                              = ' '
      LANGUAGE                          = SY-LANGU
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    EXCEPTIONS
      CANCELED                          = 1
      DEVICE                            = 2
      FORM                              = 3
      OPTIONS                           = 4
      UNCLOSED                          = 5
      MAIL_OPTIONS                      = 6
      ARCHIVE_ERROR                     = 7
      INVALID_FAX_NUMBER                = 8
      MORE_PARAMS_NEEDED_IN_BATCH       = 9
      SPOOL_ERROR                       = 10
      OTHERS                            = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>Some important parameters:</b>
    FORM Name of the form
    DEVICE PRINTER : Print output using spool
    TELEFAX: Fax output
    SCREEN: Output to screen
    OPTIONS Used to control attrubutes for printing or faxing (Number of copies, immediate output....
    The input for the parameter is structure ITCPO.
    CLOSE_FORM function
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SEND_ERROR                     = 3
      SPOOL_ERROR                    = 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.
    Paramerters:
    RESULT Returns status information and print/fax parameters after the form has been printed.
    RESULT is of structure ITCPP.
    WRITE_FORM function
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      ELEMENT                        = ' '
      FUNCTION                       = 'SET'
      TYPE                           = 'BODY'
      WINDOW                         = 'MAIN'
    IMPORTING
      PENDING_LINES                  =
    EXCEPTIONS
      ELEMENT                        = 1
      FUNCTION                       = 2
      TYPE                           = 3
      UNOPENED                       = 4
      UNSTARTED                      = 5
      WINDOW                         = 6
      BAD_PAGEFORMAT_FOR_PRINT       = 7
      SPOOL_ERROR                    = 8
      OTHERS                         = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    ELEMENT Specifies which textelement is printed
    WINDOW Specifies which window is printed
    TYPE Specifies the output area of the main window. This can be:
    TOP - Used for headers
    BODY
    BOTTOM - Used for footers
    FUNCTION Specifies whether text is to be appended, replaced or added
    Example of how to use the WRITE_FORM function module together with a script.
    Form layout of the MAIN window
    /E INTRODUCTION
    Dear Customer
    /E ITEM_HEADER
    IH Carrier, Departure
    /E ITEM_LINE
    IL &SBOOK-CARRID&, &SPFLI-DEPTIME&
    /E CLOSING_REMARK
    <b>The print program</b>
    Writing INTRODUCTION
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT                  = 'INTRODUCTION'
    FUNCTION                 = 'SET'
    TYPE                     = 'BODY'
    WINDOW                   = 'MAIN'
    EXCEPTIONS
    OTHERS                   = 8
    Writing ITEM_HEADER
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT                  = 'ITEM_HEADER'
    FUNCTION                 = 'SET'
    TYPE                     = 'BODY'
    WINDOW                   = 'MAIN'
    EXCEPTIONS
    OTHERS                   = 8
    Set ITEM_HEADER into TOP area of main window for subsequent pages
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT                  = 'ITEM_HEADER'
    FUNCTION                 = 'SET'
    TYPE                     = 'TOP'
    WINDOW                   = 'MAIN'
    EXCEPTIONS
    OTHERS                   = 8
    Write ITEM_LINE
    LOOP AT .....
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT               = 'ITEM_LINE'
    FUNCTION              = 'SET'
    TYPE                  = 'BODY'
    WINDOW                = 'MAIN'
    EXCEPTIONS
    OTHERS                 = 8.
    ENDLOOP.
    Delete ITEM_HEADER from TOP area of main window
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT                  = 'ITEM_HEADER'
    FUNCTION                 = 'DELETE'
    TYPE                     = 'TOP'
    WINDOW                   = 'MAIN'
    EXCEPTIONS
    OTHERS                    = 8
    Print CLOSING_REMARK
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT                  = 'CLOSING_REMARK'
    FUNCTION                 = 'SET'
    TYPE                          = 'BODY'
    WINDOW                   = 'MAIN'
    EXCEPTIONS
    OTHERS                    = 8
    START_FORM function
    CALL FUNCTION 'START_FORM'
    EXPORTING
      ARCHIVE_INDEX          =
      FORM                   = ' '
      LANGUAGE               = ' '
      STARTPAGE              = ' '
      PROGRAM                = ' '
      MAIL_APPL_OBJECT       =
    IMPORTING
      LANGUAGE               =
    EXCEPTIONS
      FORM                   = 1
      FORMAT                 = 2
      UNENDED                = 3
      UNOPENED               = 4
      UNUSED                 = 5
      SPOOL_ERROR            = 6
      OTHERS                 = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    END_FORM function
    CALL FUNCTION 'END_FORM'
      RESULT                         =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SPOOL_ERROR                    = 3
      OTHERS                         = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CONTROL_FORM function
    The CONTROL_FORM function module alows you to create SapScript control statements from within
    an APAB program.
    Syntax:
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    command         =
    EXCEPTIONS
      UNOPENED        = 1
      UNSTARTED       = 2
      OTHERS          = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Example:
    Protecting the text element ITEM_LINE
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    COMMAND = 'PROTECT'.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    TEXELEMENT = 'ITEM_LINE'.
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    COMMAND = 'ENDPROTECT'.
    rgds,
    latheesh
    Message was edited by: Latheesh Kaduthara

Maybe you are looking for

  • Having playlist issues getting all my songs synced

    Issue is I made a large playlist 600 + songs, I named the playlist and I can view it and play the songs from i Tunes library but, I cant sync that list to my nano. I clicked on the nano icon on the left on the i tunes menu and it pulled up default li

  • Wsdl endpoint problem

    Hi everyone, i need some help, I have a wsdl that points to an external server, if I test the wsdl in WSNavigator I need to chance the end point to "Defined by the user" and set the ip of the external server because by default is "localhost" there, m

  • Enter-Query Mode

    I'm interested in starting a discussion on the restrictions of Enter-Query Mode, principally, why can you not navigate to a query only block whilst in this form mode? I have successfully implemented an full Query functionality without using the defau

  • Creating User Accounts

    I installed HTML DB yesterday and everything looks OK in the "install.lst" file. I am able to login as admin/<pass>. According to the HTML DB Users Guide on page 11-2, Creating New User Accounts, I am supposed to select the Administration tab -> Mana

  • I  would like you to change from my current subscription to the  Ps and Lr only

    Tried to call, but from Brasil this seems impossible, Adobe does not call back to a foreign number. Cheers, kpo