ABAP program for automation

Hi all...
Actually, i have a problem...
I need to automate 1 reconcilation for my current project... for that im given 1 another recon as a reference...
In the reference recon there is some part of the code that i didnt understand...
Can someone help me out...?
*selection screens
Run options
SELECTION-SCREEN BEGIN OF BLOCK proc_opt WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_read RADIOBUTTON GROUP rad DEFAULT 'X' USER-COMMAND rad.     "Radiobutton MPVL
SELECTION-SCREEN COMMENT 5(10) g_read.
PARAMETERS p_write RADIOBUTTON GROUP rad.
SELECTION-SCREEN COMMENT 20(10) g_write.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF BLOCK write WITH FRAME TITLE text-004.
PARAMETER: s_syid(3)  OBLIGATORY MODIF ID 101,                       " Source System
           s_clid(3)  OBLIGATORY MODIF ID 101,                       " Source Client
           s_csyid(3) NO-DISPLAY MODIF ID 102  DEFAULT sy-sysid .    " BW System
SELECTION-SCREEN BEGIN OF LINE.
PARAMETER: mpvl RADIOBUTTON GROUP g1      MODIF ID 101.
SELECTION-SCREEN COMMENT 4(10) g_mpvl     MODIF ID 101.
PARAMETER: mpalf RADIOBUTTON GROUP g1     MODIF ID 101.
SELECTION-SCREEN COMMENT 20(10) g_mpalf   MODIF ID 101.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK write.
SELECTION-SCREEN END OF BLOCK proc_opt.
The above given is the code...
Please help me out...

Hi,,
This is just the selection screen.
SELECTION-SCREEN BEGIN OF BLOCK proc_opt WITH FRAME TITLE text-001.
All the parameter or comment will come in one line.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_read RADIOBUTTON GROUP rad DEFAULT 'X' USER-COMMAND rad. "Radiobutton MPVL
This is a radiobutton which is by default cheked.
SELECTION-SCREEN COMMENT 5(10) g_read.
PARAMETERS p_write RADIOBUTTON GROUP rad.
SELECTION-SCREEN COMMENT 20(10) g_write.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF BLOCK write WITH FRAME TITLE text-004.
PARAMETER: s_syid(3) OBLIGATORY MODIF ID 101, " Source System
s_clid(3) OBLIGATORY MODIF ID 101, " Source Client
s_csyid(3) NO-DISPLAY MODIF ID 102 DEFAULT sy-sysid . " BW System
Again these are the parameter first two are mandatory.
3rd parameter  wont displayed in the screen.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETER: mpvl RADIOBUTTON GROUP g1 MODIF ID 101.
SELECTION-SCREEN COMMENT 4(10) g_mpvl MODIF ID 101.
PARAMETER: mpalf RADIOBUTTON GROUP g1 MODIF ID 101.
SELECTION-SCREEN COMMENT 20(10) g_mpalf MODIF ID 101.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK write.
SELECTION-SCREEN END OF BLOCK proc_opt.
You jusy copy the code and execute it in se38 in sandbox.
Then you can understand easily.
Thanks,
Saveen kUmar

Similar Messages

  • How to read a word in a abap program for syntax check

    program for finding keywords:
    into a given program name in selection screen.
    e.g Parameters Keyword in YXABC propgram.
    How to find a word in a abap program for syntax check

    Hi!
    Read table TNAPR for the program names.
    Then use the READ REPORT  statement for it and load the program into an internal table.
    Then loop at the table.
    Regards
    Tamá

  • ABAP Program for Processchain..

    I have one processchain that is running my manually.
    if processchain running means need a output like processchain running.if processchain not running/completed
    i need a output like process completed.so finaly i need to develop abap program for my processchain.any one write program for my processchain?

    Hi,
    REPORT  ZPROCESSCHAINLOG.
    TABLES rspclogchain.
    DATA: gt_rspclogchain LIKE rspclogchain OCCURS 0,
          wa_rspclogchain LIKE rspclogchain.
    DATA: gt_log LIKE rspc_s_msg OCCURS 0,
          wa_log LIKE rspc_s_msg,
          log type c.
    SELECT * FROM rspclogchain
    INTO CORRESPONDING FIELDS OF TABLE gt_rspclogchain
    WHERE datum eq sy-datum
    AND chain_id = YOUR PROCESSCHAINID.
    IF sy-subrc = 0.
      SORT gt_rspclogchain BY datum DESCENDING
                               zeit DESCENDING.
      READ TABLE gt_rspclogchain
           INTO wa_rspclogchain INDEX 1.
      CALL FUNCTION 'RSPC_API_CHAIN_GET_LOG'
        EXPORTING
          i_chain = wa_rspclogchain-chain_id
          i_logid = wa_rspclogchain-log_id
        TABLES
          e_t_log = gt_log.
      IF sy-subrc = 0.
        LOOP AT gt_log INTO wa_log.
          if wa_log-msgv4 = 'Successfully completed'.
            log = 1 .
          endif.
        ENDLOOP.
        if log = 1.
          WRITE: / 'Processchain completed'.
        ELSE.
          WRITE :/ 'processchain is running'.
        endif.
      ELSEIF sy-subrc <> 0.
        WRITE :/ 'Not scheduled'.
      endif.
    endif.
    Best Regards,
    Thangesh

  • ABAP program for wage type variant report

    Hi experts,
    plz any one sen me the ABAP program for to create wage type variant report plz.
    Thanks
    Rajesh.

    Requesting for code is against forum rules. Please read the rules of the forum before posting.

  • ABAP programing for off-cycle payment for bonus

    Hi Guru's
    I have to develop a ABAP program for Off-cycle payment bonus,
    I am new, any one can help me in this.

    Hai,
    Please refer to the given below link:
    back payment for off-cycle bonus

  • ABAP program for sending emails

    Hello SAP developers,
    I need ABAP program for sending emails to my internet adress in background - just some simple header with no body and no attachement. Recipient should be specified due the parameter etc... Does program like this exist or i have to create it? I am not familiar with ABAP. I am basis admin so I am little bit lost in this. I have tried program code from this page ->
    http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm
    But anyway it does not work - there is an exception "no message send". SCOT is configured, mails are working fine from transaction SBWP.
    Thanks in advace
    JM

    I have already solved my issue through CCMS agents and RZ20 central autoreaction (sms) in Solution Manager.
    Regards
    JM

  • ABAP program for BAPI and convert DB into XML

    ABAP program for BAPI and convert DB into XML
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Refer the link -
    give an example of bapi coding?
    how can we transfer huge amount of data from database server to xml format
    Regards,
    Amit
    Reward all helpful replies.

  • Any abap program for copying transformation in bi 7.0

    Hi guys
    Could you please let us know is there any abap program to copy transformation in BI 7.0 as we used to have copying update rule in Bw 3.5 or is there any other way ! It is for same datasource , ODS but different source system...
    Advance thanks

    Hi,
      It is there in support packs. we use to have similar kind of problem but we applied and it works pretty neat.
    i think the support pack is sp17 or sp16.
    thanks
    syed

  • How to create a job thru ABAP program for calling a program with variant???

    Hello experts,
    can u give me step wise procedure to create jobs for  a program with a variant name thru ABAP???
    Also, can a transaction can be scheduled as a job to run in background with a variant name???
    Edited by: SAP USER on Jul 22, 2008 6:08 AM

    Hi,
    To create a job through ABAP program you can do the following.
    Go to Menu bar.
    In there, go to   SYTSTEM> SERVICES> JOBS--> DEFINE JOB.
    Then give the JOB NAME and CLASS in the screen that comes up.
    This is how we schedule a program.
    Now, to create a variant for a program -
    First activate your program in SE38. Then execute it .
    Now, click on SAVE button. It will open up  the variant creation screen. Give the details there like variant name and value for the fields. Save and come back.
    Hope this helps.
    Regards,
    Hari Kiran

  • Standard ABAP program for process chains

    Hi gurus,
      Is there any standard ABAP program to trigger process chains?
    I do not have authorization for RSPC_API_CHAIN_START. So is there any alternative function module or any standard ABAP program that I could use?
    Please help.

    Hi Apara,
      Did you try scheduling the chain via rspc1? If not then follow the steps as given below and see if it is successful
    1) Goto RSPC1.
    2) Enter your chain technical name.
    3) Go to display variant by right clicking the chain. Select the immediate option. save the settings.
    4) Come back to the process chain screen. Click on execute button. See if this succeeds.
    or in case if the chain has been already scheduled once:
    Just open the PC in RCPC1/RCPC
    right click on the start variant (i.e the first process in the PC)
    and select display scheduled jobs...
    this will show you the released jobs for this pC
    just selsct the check box in front of the released job and the select the menu option Job - > selct Repeat scheduling.
    selct immediate and remove the periodic tick mark and save which will run your process chain immediately.
    But i doubt if you will be able to schedule the process chain via a function module or a ABAP code without prior authorization. Maybe you can request some one from your team to run the chain for you until you get access.
    You will surely need to get access for running the chain without which it should not be possible to run the chain.
    Thanks
    Pawan

  • ABAP Program for set local process chain failed

    I would like to execute ABAP Program in local process chain. If the condition is in the pre-defined bussiness rule, local process chain is set to fail.
    Currently I use ABAP and Raise Message Error = Message Type E for cancel program. After program is cancelled, local process chain don't know its status, wait for job SAP_CCMS_MONI_BATCH_DP  to determine status of process chain and then further execute subsequent process.
    I 'm not sure that our solution is right or not about set process chain to fail via ABAP. Please suggest us if there are other solution to set process chain as failed.

    Hi.
    Plz see my answer to similar question in [this thread|Re: Manage a message at the end of process chain on Web planning Application].
    Regards.

  • ABAP program for units of measurement transfer

    Is there any ABAP program that will transfer units of measurement from R/3 to BW (like RSA1>source sytems>right click on client>transfer global settings)?
    I need it for scheduling this operation.
    Thanks in advance.

    Hello Andrew Timoshenko,
    How r u ?
    I believe if u Switch On "Dubug ABAP" option and do the same u have mentioned u might get the ABAP Program behind that operation
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • ABAP-Programming for SAP BW u0096 User-Exits und BAdIs

    Hi experts,
    i am a novice und looking for informations about Badi and User-exits for BW .
    i want to learn how to programm extractors.
    Can you you help me by giving me some informations or documents or sap links where i can find informations?
    Cheers

    Dear Mr Herzog,
    Congratulations for the book: Abap Developement for SAP Netweaver BI: User exits and BadIs.
    We're trying to implement the suggestions on the chapter 5.1.1 Interface of function module EXIT_SAPLRSR0_001 (page 136), however, we're having problens with the abap sintax CALL_FUNCTION  l_d_name IF FOUND.
    The command IF FOUND is not accepted.
    It'll be very helpful to avoid issues on tranporting include zxrsru01.
    I appreciate any additional help on how to implement it.
    Best Rgs
    Eliseo Bouzan

  • Documentation in ABAP Programming for ECC 6.0

    Can Anybody tell me how to do documentation in ABAP Programming in SAP  ecc 6.0
    What are the options there ?
    Also please let me know if there is a concept called "C DOCS".
    Thanks
    Naresh

    HI,
    In se38 ..give ur program name.
    In menu Goto --> Documentation --> Change.
    and press save.
    Thanx
    bgan.

  • Error while exporting ABAP programs for transport

    Hi,
    In the process of exporting my abap programs so that they can be transported, I released my work request.
    However, during release, errors were encountered, and the status of the release was set to 'Release Started'.
    The error encountered was
    '[STOP ICON] ===> HALT: rscpi_init fails with rc = 1 (twconv. c:957) Please contact the SAP support.'
    Can anyone help? Thanks.

    check all the objects used  in ur report are in same package
    Edited by: BrightSide on May 14, 2008 3:53 PM

Maybe you are looking for