SlideShare a Scribd company logo
1 of 8
Se51

process before output.
 module status_8000.

 loop with control control.
  module fill_table_control.
 endloop.

process after input.

 loop with control control.
  module read_table_control.
 endloop.

 module user_command_8000.

process on value-request.

 field wk_sno module valuerequest_help.



Se38

program ycoe_module29 message-id zmsg.

tables : ysrtmm.

controls : control type tableview using screen 8000.

data : wk_f1(20) type c.

data : begin of i_ysrtmm occurs 0,
     sno type ysrtmm-sno,
     sname type ysrtmm-sname,
     scity type ysrtmm-scity,
     sedu type ysrtmm-sedu,
     spercent type ysrtmm-spercent,
     select(1),
     end of i_ysrtmm.

data : i_ysrtmm1 like i_ysrtmm occurs 0 with header line.

data : i_final like ysrtmm occurs 0 with header line.

data : begin of i_check occurs 0,
     sno type ysrtmm-sno,
     sname type ysrtmm-sname,
     scity type ysrtmm-scity,
     sedu type ysrtmm-sedu,
     spercent type ysrtmm-spercent,
     end of i_check.

data : lines type i.
data : wk_init type i.
data : n type i.
data : wk_answer.
data : wk_sno(30).
data : flag.

data : cols like line of control-cols.
data : begin of i_tmp occurs 0,
     sname type ysrtmm-sname,
     scity type ysrtmm-scity,
     sedu type ysrtmm-sedu,
     spercent type ysrtmm-spercent,
     end of i_tmp.

*&---------------------------------------------------------------------*
*& Module STATUS_8000 OUTPUT
*&---------------------------------------------------------------------*
*     text
*----------------------------------------------------------------------*
module status_8000 output.

 set pf-status 'STAT29'.
 set titlebar 'TITLE'.

 describe table i_ysrtmm1 lines lines.
 control-lines = lines + 10.

endmodule.                quot; STATUS_8000 OUTPUT
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_8000 INPUT
*&---------------------------------------------------------------------*
*     text
*----------------------------------------------------------------------*
module user_command_8000 input.

 case sy-ucomm.

    when 'DISP'.
     select sno sname scity sedu spercent
      from ysrtmm into corresponding fields of table i_ysrtmm1.

*     LOOP AT control-cols INTO cols WHERE index EQ 1.
*      IF cols-screen-input = '0'.
*       cols-screen-input = '1'.
*      ELSEIF cols-screen-input = '1'.
*       cols-screen-input = '0'.
*      ENDIF.
*      MODIFY control-cols FROM cols INDEX sy-tabix.
*     ENDLOOP.

     when 'ADD'.


      flag = 'Y'.



    when 'INSE'.

     if i_ysrtmm1-sname is initial and i_ysrtmm1-select = 'X'.
       refresh i_ysrtmm1.
     endif.

     clear i_ysrtmm1.
     loop at i_ysrtmm1.
      i_final-mandt = sy-mandt.
      i_final-sno = i_ysrtmm1-sno.
      i_final-sname = i_ysrtmm1-sname.
      i_final-scity = i_ysrtmm1-scity.
i_final-sedu = i_ysrtmm1-sedu.
      i_final-spercent = i_ysrtmm1-spercent.
      append i_final.
      clear : i_final.
     endloop.


     select sno sname scity sedu spercent
     from ysrtmm into table i_check for all
     entries in i_final where sno = i_final-sno.

     if sy-subrc ne 0.
       if i_final[] is not initial.
         insert ysrtmm from table i_final.
         if sy-subrc eq 0.
           commit work.
           message i010.
           clear : i_ysrtmm,i_ysrtmm1,i_final.
           refresh : i_ysrtmm,i_ysrtmm1,i_final.
           leave screen.
         else.
           rollback work.
         endif.
       endif.
     else.
       message i012.
     endif.

     clear : i_check.
     refresh i_check.


    when 'DELE'.

     delete i_ysrtmm1 where select = 'X'.
     clear i_ysrtmm1.
*     IF sy-subrc EQ 0.
*       COMMIT WORK.
*       MESSAGE i011.
*     ELSE.
*       ROLLBACK WORK.
*     ENDIF.


    when 'UPDA'.

     loop at i_ysrtmm1.
      i_final-mandt = sy-mandt.
      i_final-sno = i_ysrtmm1-sno.
      i_final-sname = i_ysrtmm1-sname.
      i_final-scity = i_ysrtmm1-scity.
      i_final-sedu = i_ysrtmm1-sedu.
      i_final-spercent = i_ysrtmm1-spercent.
      append i_final.
      clear : i_final.
     endloop.

     select sno sname scity sedu spercent
     from ysrtmm into table i_check for all
     entries in i_final where sno = i_final-sno.
if sy-subrc eq 0.
    if i_final[] is not initial.
      update ysrtmm from table i_final.
      if sy-subrc eq 0.
        commit work.
        message i013.
*         CLEAR : i_ysrtmm,i_ysrtmm1,i_final.
*         REFRESH : i_ysrtmm,i_ysrtmm1,i_final.
        leave screen.
      else.
        rollback work.
      endif.
    endif.
  else.
    message i014.
  endif.

   clear : i_check.
   refresh i_check.

  when 'REFR'.

   refresh i_ysrtmm1.

  when 'EXIT'.

   leave program.


  when 'BACK' or 'CANCEL'.

   call function 'POPUP_TO_CONFIRM_STEP'
    exporting
      defaultoption = 'Y'
      textline1 = 'Do you wish to exit'(004)
      textline2 = 'Confirm?'(005)
      titel      = 'Exit Processing'(006)
      start_column = 25
      start_row = 6
      cancel_display = 'X'
    importing
      answer       = wk_answer.

   case wk_answer.

    when 'J'.

     leave program.
   endcase.

 endcase.

endmodule.            quot; USER_COMMAND_8000 INPUT
*&---------------------------------------------------------------------*
*& Module READ_TABLE_CONTROL INPUT
*&---------------------------------------------------------------------*
*     text
*----------------------------------------------------------------------*
module read_table_control input.

 lines = sy-loopc.

 if sy-ucomm eq 'ENTER'.
   select single sname scity sedu spercent from ysrtmm
   into i_tmp
   where sno = i_ysrtmm-sno.
   if sy-subrc = 0.
     i_ysrtmm-sname = i_tmp-sname.
     i_ysrtmm-scity = i_tmp-scity.
     i_ysrtmm-sedu = i_tmp-sedu.
     i_ysrtmm-spercent = i_tmp-spercent.
   endif.
 endif.

 read table i_ysrtmm1 index control-current_line.
 if sy-subrc eq 0.
   modify i_ysrtmm1 from i_ysrtmm index control-current_line.
 else.

  move-corresponding i_ysrtmm to i_ysrtmm1.
  append i_ysrtmm1.
  clear i_ysrtmm.
 endif.

endmodule.                quot; READ_TABLE_CONTROL INPUT
*&---------------------------------------------------------------------*
*& Module FILL_TABLE_CONTROL OUTPUT
*&---------------------------------------------------------------------*
*     text
*----------------------------------------------------------------------*
module fill_table_control output.

 loop at screen.
  if screen-name = 'I_YSRTMM-SNO'.
    screen-input = '0'.
    modify screen.
  endif.
  if screen-name = 'I_YSRTMM-SNAME'.
    screen-input = '0'.
    modify screen.
  endif.
  if screen-name = 'I_YSRTMM-SCITY'.
    screen-input = '0'.
    modify screen.
  endif.
  if screen-name = 'I_YSRTMM-SEDU'.
    screen-input = '0'.
    modify screen.
  endif.
  if screen-name = 'I_YSRTMM-SPERCENT'.
    screen-input = '0'.
    modify screen.
  endif.
 endloop.
describe table i_ysrtmm1 lines wk_init.

 if wk_init is not initial.
   read table i_ysrtmm1 into i_ysrtmm index control-current_line.
 endif.

 if sy-ucomm = 'ADD'.
   loop at screen.
    if flag is initial.
      screen-input = 0.
    elseif ( flag eq 'Y' ).
      if ( ( screen-name = 'I_YSRTMM-SNO' or
            screen-name = 'I_YSRTMM-SNAME' or
            screen-name = 'I_YSRTMM-SCITY' or
            screen-name = 'I_YSRTMM-SEDU' or
            screen-name = 'I_YSRTMM-SPERCENT' )
      and control-current_line le lines ).
        screen-input = 1.
      else.
      endif.
    endif.
    modify screen.
   endloop.
 endif.


endmodule.                quot; FILL_TABLE_CONTROL OUTPUT
*&---------------------------------------------------------------------*
*& Module VALUEREQUEST_HELP INPUT
*&---------------------------------------------------------------------*
*     text
*----------------------------------------------------------------------*
module valuerequest_help input.

 data : begin of it_tmp occurs 0,
     sno like ysrtmm-sno,
     end of it_tmp.

 data: progname like sy-repid,

     dynnum like sy-dynnr.

 data : t_return like ddshretval occurs 0 with header line.

 refresh it_tmp.

 select sno from ysrtmm client specified into it_tmp

 where mandt = sy-mandt.

  append it_tmp.

 endselect.

 call function 'F4IF_INT_TABLE_VALUE_REQUEST'
  exporting
    retfield = 'YSRTMM-SNO'
    dynpprog = progname
    dynpnr = dynnum
    dynprofield = 'WK_SNO'
value    = 'YSRTMM-SNO'
   value_org = 'S'
  tables
   value_tab = it_tmp
   return_tab = t_return.

 if sy-subrc = 0.

  read table t_return index 1.

  condense t_return-fieldval.

  wk_sno = t_return-fieldval.

 endif.

endmodule.            quot; VALUEREQUEST_HELP INPUT
Module Prog

More Related Content

Similar to Module Prog

Example syntax alv grid list
Example syntax alv grid listExample syntax alv grid list
Example syntax alv grid listNur Khoiri
 
Alv interactive ABAPreport
Alv interactive ABAPreportAlv interactive ABAPreport
Alv interactive ABAPreportRavi Kanudawala
 
Queries assignment udf_and_triggers
Queries assignment udf_and_triggersQueries assignment udf_and_triggers
Queries assignment udf_and_triggersPriya Sharma
 
operating system ubuntu,linux,MacProgram will work only if you g.pdf
operating system ubuntu,linux,MacProgram will work only if you g.pdfoperating system ubuntu,linux,MacProgram will work only if you g.pdf
operating system ubuntu,linux,MacProgram will work only if you g.pdfaptcomputerzone
 
LLVM Backend の紹介
LLVM Backend の紹介LLVM Backend の紹介
LLVM Backend の紹介Akira Maruoka
 
operating system Linux,ubuntu,Mac#include stdio.h #include .pdf
operating system Linux,ubuntu,Mac#include stdio.h #include .pdfoperating system Linux,ubuntu,Mac#include stdio.h #include .pdf
operating system Linux,ubuntu,Mac#include stdio.h #include .pdfaquazac
 
Devouring Security Sqli Exploitation and Prevention
Devouring Security Sqli Exploitation and PreventionDevouring Security Sqli Exploitation and Prevention
Devouring Security Sqli Exploitation and Preventiongmaran23
 
Modularization & Catch Statement
Modularization & Catch StatementModularization & Catch Statement
Modularization & Catch Statementsapdocs. info
 
Internal tables operations_chalapathi[1]
Internal tables operations_chalapathi[1]Internal tables operations_chalapathi[1]
Internal tables operations_chalapathi[1]Chalapathi Rao kornu
 
ABAP EVENTS EXAMPLE
ABAP EVENTS EXAMPLEABAP EVENTS EXAMPLE
ABAP EVENTS EXAMPLEvr1sap
 
zen and the art of SQL optimization
zen and the art of SQL optimizationzen and the art of SQL optimization
zen and the art of SQL optimizationKaren Morton
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersConnor McDonald
 

Similar to Module Prog (20)

Example syntax alv grid list
Example syntax alv grid listExample syntax alv grid list
Example syntax alv grid list
 
Alv interactive ABAPreport
Alv interactive ABAPreportAlv interactive ABAPreport
Alv interactive ABAPreport
 
ABAP Advanced List
ABAP Advanced ListABAP Advanced List
ABAP Advanced List
 
Queries assignment udf_and_triggers
Queries assignment udf_and_triggersQueries assignment udf_and_triggers
Queries assignment udf_and_triggers
 
Report zalv
Report  zalvReport  zalv
Report zalv
 
operating system ubuntu,linux,MacProgram will work only if you g.pdf
operating system ubuntu,linux,MacProgram will work only if you g.pdfoperating system ubuntu,linux,MacProgram will work only if you g.pdf
operating system ubuntu,linux,MacProgram will work only if you g.pdf
 
LLVM Backend の紹介
LLVM Backend の紹介LLVM Backend の紹介
LLVM Backend の紹介
 
operating system Linux,ubuntu,Mac#include stdio.h #include .pdf
operating system Linux,ubuntu,Mac#include stdio.h #include .pdfoperating system Linux,ubuntu,Mac#include stdio.h #include .pdf
operating system Linux,ubuntu,Mac#include stdio.h #include .pdf
 
Devouring Security Sqli Exploitation and Prevention
Devouring Security Sqli Exploitation and PreventionDevouring Security Sqli Exploitation and Prevention
Devouring Security Sqli Exploitation and Prevention
 
Slot shifting1
Slot shifting1Slot shifting1
Slot shifting1
 
Modularization & Catch Statement
Modularization & Catch StatementModularization & Catch Statement
Modularization & Catch Statement
 
Sr971 972+ultisolar new energy co ltd solar pump station solar water heater c...
Sr971 972+ultisolar new energy co ltd solar pump station solar water heater c...Sr971 972+ultisolar new energy co ltd solar pump station solar water heater c...
Sr971 972+ultisolar new energy co ltd solar pump station solar water heater c...
 
Sort presentation
Sort presentationSort presentation
Sort presentation
 
Internal tables operations_chalapathi[1]
Internal tables operations_chalapathi[1]Internal tables operations_chalapathi[1]
Internal tables operations_chalapathi[1]
 
Alv Block
Alv BlockAlv Block
Alv Block
 
ABAP EVENTS EXAMPLE
ABAP EVENTS EXAMPLEABAP EVENTS EXAMPLE
ABAP EVENTS EXAMPLE
 
zen and the art of SQL optimization
zen and the art of SQL optimizationzen and the art of SQL optimization
zen and the art of SQL optimization
 
Zmalv output type_v1.1
Zmalv output type_v1.1Zmalv output type_v1.1
Zmalv output type_v1.1
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developers
 
SAV
SAVSAV
SAV
 

Recently uploaded

Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service CuttackLow Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service CuttackSuhani Kapoor
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineBruce Bennett
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证obuhobo
 
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...Suhani Kapoor
 
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
VIP Russian Call Girls in Amravati Deepika 8250192130 Independent Escort Serv...
VIP Russian Call Girls in Amravati Deepika 8250192130 Independent Escort Serv...VIP Russian Call Girls in Amravati Deepika 8250192130 Independent Escort Serv...
VIP Russian Call Girls in Amravati Deepika 8250192130 Independent Escort Serv...Suhani Kapoor
 
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...Suhani Kapoor
 
Preventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxPreventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxGry Tina Tinde
 
Final Completion Certificate of Marketing Management Internship
Final Completion Certificate of Marketing Management InternshipFinal Completion Certificate of Marketing Management Internship
Final Completion Certificate of Marketing Management InternshipSoham Mondal
 
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service CuttackVIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service CuttackSuhani Kapoor
 
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiVIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Datingkojalkojal131
 
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...Suhani Kapoor
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Dubai Call Girls Naija O525547819 Call Girls In Dubai Home Made
Dubai Call Girls Naija O525547819 Call Girls In Dubai Home MadeDubai Call Girls Naija O525547819 Call Girls In Dubai Home Made
Dubai Call Girls Naija O525547819 Call Girls In Dubai Home Madekojalkojal131
 
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...Suhani Kapoor
 
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...robinsonayot
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...shivangimorya083
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfSoham Mondal
 

Recently uploaded (20)

Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCeCall Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
 
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service CuttackLow Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying Online
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
 
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
VIP Call Girls Firozabad Aaradhya 8250192130 Independent Escort Service Firoz...
 
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Russian Call Girls in Amravati Deepika 8250192130 Independent Escort Serv...
VIP Russian Call Girls in Amravati Deepika 8250192130 Independent Escort Serv...VIP Russian Call Girls in Amravati Deepika 8250192130 Independent Escort Serv...
VIP Russian Call Girls in Amravati Deepika 8250192130 Independent Escort Serv...
 
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
 
Preventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxPreventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptx
 
Final Completion Certificate of Marketing Management Internship
Final Completion Certificate of Marketing Management InternshipFinal Completion Certificate of Marketing Management Internship
Final Completion Certificate of Marketing Management Internship
 
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service CuttackVIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
 
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service BhilaiVIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
VIP Call Girl Bhilai Aashi 8250192130 Independent Escort Service Bhilai
 
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
 
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Dubai Call Girls Naija O525547819 Call Girls In Dubai Home Made
Dubai Call Girls Naija O525547819 Call Girls In Dubai Home MadeDubai Call Girls Naija O525547819 Call Girls In Dubai Home Made
Dubai Call Girls Naija O525547819 Call Girls In Dubai Home Made
 
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
 
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
 

Module Prog

  • 1. Se51 process before output. module status_8000. loop with control control. module fill_table_control. endloop. process after input. loop with control control. module read_table_control. endloop. module user_command_8000. process on value-request. field wk_sno module valuerequest_help. Se38 program ycoe_module29 message-id zmsg. tables : ysrtmm. controls : control type tableview using screen 8000. data : wk_f1(20) type c. data : begin of i_ysrtmm occurs 0, sno type ysrtmm-sno, sname type ysrtmm-sname, scity type ysrtmm-scity, sedu type ysrtmm-sedu, spercent type ysrtmm-spercent, select(1), end of i_ysrtmm. data : i_ysrtmm1 like i_ysrtmm occurs 0 with header line. data : i_final like ysrtmm occurs 0 with header line. data : begin of i_check occurs 0, sno type ysrtmm-sno, sname type ysrtmm-sname, scity type ysrtmm-scity, sedu type ysrtmm-sedu, spercent type ysrtmm-spercent, end of i_check. data : lines type i. data : wk_init type i. data : n type i. data : wk_answer. data : wk_sno(30). data : flag. data : cols like line of control-cols.
  • 2. data : begin of i_tmp occurs 0, sname type ysrtmm-sname, scity type ysrtmm-scity, sedu type ysrtmm-sedu, spercent type ysrtmm-spercent, end of i_tmp. *&---------------------------------------------------------------------* *& Module STATUS_8000 OUTPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* module status_8000 output. set pf-status 'STAT29'. set titlebar 'TITLE'. describe table i_ysrtmm1 lines lines. control-lines = lines + 10. endmodule. quot; STATUS_8000 OUTPUT *&---------------------------------------------------------------------* *& Module USER_COMMAND_8000 INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* module user_command_8000 input. case sy-ucomm. when 'DISP'. select sno sname scity sedu spercent from ysrtmm into corresponding fields of table i_ysrtmm1. * LOOP AT control-cols INTO cols WHERE index EQ 1. * IF cols-screen-input = '0'. * cols-screen-input = '1'. * ELSEIF cols-screen-input = '1'. * cols-screen-input = '0'. * ENDIF. * MODIFY control-cols FROM cols INDEX sy-tabix. * ENDLOOP. when 'ADD'. flag = 'Y'. when 'INSE'. if i_ysrtmm1-sname is initial and i_ysrtmm1-select = 'X'. refresh i_ysrtmm1. endif. clear i_ysrtmm1. loop at i_ysrtmm1. i_final-mandt = sy-mandt. i_final-sno = i_ysrtmm1-sno. i_final-sname = i_ysrtmm1-sname. i_final-scity = i_ysrtmm1-scity.
  • 3. i_final-sedu = i_ysrtmm1-sedu. i_final-spercent = i_ysrtmm1-spercent. append i_final. clear : i_final. endloop. select sno sname scity sedu spercent from ysrtmm into table i_check for all entries in i_final where sno = i_final-sno. if sy-subrc ne 0. if i_final[] is not initial. insert ysrtmm from table i_final. if sy-subrc eq 0. commit work. message i010. clear : i_ysrtmm,i_ysrtmm1,i_final. refresh : i_ysrtmm,i_ysrtmm1,i_final. leave screen. else. rollback work. endif. endif. else. message i012. endif. clear : i_check. refresh i_check. when 'DELE'. delete i_ysrtmm1 where select = 'X'. clear i_ysrtmm1. * IF sy-subrc EQ 0. * COMMIT WORK. * MESSAGE i011. * ELSE. * ROLLBACK WORK. * ENDIF. when 'UPDA'. loop at i_ysrtmm1. i_final-mandt = sy-mandt. i_final-sno = i_ysrtmm1-sno. i_final-sname = i_ysrtmm1-sname. i_final-scity = i_ysrtmm1-scity. i_final-sedu = i_ysrtmm1-sedu. i_final-spercent = i_ysrtmm1-spercent. append i_final. clear : i_final. endloop. select sno sname scity sedu spercent from ysrtmm into table i_check for all entries in i_final where sno = i_final-sno.
  • 4. if sy-subrc eq 0. if i_final[] is not initial. update ysrtmm from table i_final. if sy-subrc eq 0. commit work. message i013. * CLEAR : i_ysrtmm,i_ysrtmm1,i_final. * REFRESH : i_ysrtmm,i_ysrtmm1,i_final. leave screen. else. rollback work. endif. endif. else. message i014. endif. clear : i_check. refresh i_check. when 'REFR'. refresh i_ysrtmm1. when 'EXIT'. leave program. when 'BACK' or 'CANCEL'. call function 'POPUP_TO_CONFIRM_STEP' exporting defaultoption = 'Y' textline1 = 'Do you wish to exit'(004) textline2 = 'Confirm?'(005) titel = 'Exit Processing'(006) start_column = 25 start_row = 6 cancel_display = 'X' importing answer = wk_answer. case wk_answer. when 'J'. leave program. endcase. endcase. endmodule. quot; USER_COMMAND_8000 INPUT
  • 5. *&---------------------------------------------------------------------* *& Module READ_TABLE_CONTROL INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* module read_table_control input. lines = sy-loopc. if sy-ucomm eq 'ENTER'. select single sname scity sedu spercent from ysrtmm into i_tmp where sno = i_ysrtmm-sno. if sy-subrc = 0. i_ysrtmm-sname = i_tmp-sname. i_ysrtmm-scity = i_tmp-scity. i_ysrtmm-sedu = i_tmp-sedu. i_ysrtmm-spercent = i_tmp-spercent. endif. endif. read table i_ysrtmm1 index control-current_line. if sy-subrc eq 0. modify i_ysrtmm1 from i_ysrtmm index control-current_line. else. move-corresponding i_ysrtmm to i_ysrtmm1. append i_ysrtmm1. clear i_ysrtmm. endif. endmodule. quot; READ_TABLE_CONTROL INPUT *&---------------------------------------------------------------------* *& Module FILL_TABLE_CONTROL OUTPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* module fill_table_control output. loop at screen. if screen-name = 'I_YSRTMM-SNO'. screen-input = '0'. modify screen. endif. if screen-name = 'I_YSRTMM-SNAME'. screen-input = '0'. modify screen. endif. if screen-name = 'I_YSRTMM-SCITY'. screen-input = '0'. modify screen. endif. if screen-name = 'I_YSRTMM-SEDU'. screen-input = '0'. modify screen. endif. if screen-name = 'I_YSRTMM-SPERCENT'. screen-input = '0'. modify screen. endif. endloop.
  • 6. describe table i_ysrtmm1 lines wk_init. if wk_init is not initial. read table i_ysrtmm1 into i_ysrtmm index control-current_line. endif. if sy-ucomm = 'ADD'. loop at screen. if flag is initial. screen-input = 0. elseif ( flag eq 'Y' ). if ( ( screen-name = 'I_YSRTMM-SNO' or screen-name = 'I_YSRTMM-SNAME' or screen-name = 'I_YSRTMM-SCITY' or screen-name = 'I_YSRTMM-SEDU' or screen-name = 'I_YSRTMM-SPERCENT' ) and control-current_line le lines ). screen-input = 1. else. endif. endif. modify screen. endloop. endif. endmodule. quot; FILL_TABLE_CONTROL OUTPUT *&---------------------------------------------------------------------* *& Module VALUEREQUEST_HELP INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* module valuerequest_help input. data : begin of it_tmp occurs 0, sno like ysrtmm-sno, end of it_tmp. data: progname like sy-repid, dynnum like sy-dynnr. data : t_return like ddshretval occurs 0 with header line. refresh it_tmp. select sno from ysrtmm client specified into it_tmp where mandt = sy-mandt. append it_tmp. endselect. call function 'F4IF_INT_TABLE_VALUE_REQUEST' exporting retfield = 'YSRTMM-SNO' dynpprog = progname dynpnr = dynnum dynprofield = 'WK_SNO'
  • 7. value = 'YSRTMM-SNO' value_org = 'S' tables value_tab = it_tmp return_tab = t_return. if sy-subrc = 0. read table t_return index 1. condense t_return-fieldval. wk_sno = t_return-fieldval. endif. endmodule. quot; VALUEREQUEST_HELP INPUT