SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAP ABAP

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem 'SUBMIT and RETURN' and USER COMMAND Ramma SAP ABAP 2 02-13-2011 12:59 PM
passing data to submit program Ramma SAP ABAP 2 09-22-2010 09:18 PM
need to submit the layout of sap server landscape Rampa SAP BASIS 2 07-08-2010 05:26 PM
Year 2010 Bug! - Announcement + Follow Up Issues Portal SAP BASIS 15 06-16-2010 10:46 AM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 01-31-2012, 08:49 PM
Pepa Pepa is offline
Senior Member
 
Join Date: May 2010
Location: Texas
Posts: 314
Default Rare 'bug' with SUBMIT

Hi all,

I have an issue, but first of all, I want to clarify that this issue is resolved. But I'm intrigued... and want to share.

I've created an report (main). This report call another in START-OF SELECTION event, using SUBMIT. Very simply:

Code:
REPORT z_main_rep LINE-SIZE 132 LINE-COUNT 65 NO STANDARD PAGE HEADING.
 
PARAMETERS: rb_1 TYPE c RADIOBUTTON GROUP gr1,
            rb_2 TYPE c RADIOBUTTON GROUP gr1,
            rb_3 TYPE c RADIOBUTTON GROUP gr1.
 
START-OF-SELECTION.
 
  IF rb_1 IS NOT INITIAL.
    SUBMIT z_subrep1 AND RETURN.
  ELSEIF rb_2 IS NOT INITIAL.
    SUBMIT z_subrep2 AND RETURN.
  ELSE.
    SUBMIT z_subrep3 AND RETURN.
  ENDIF.
 
END-OF-SELECTION.

This's all.

Then, I run the report, and press F8 to excecute (rb_1 marked). Selection-screen of Z_SUBREP1 appears. I fill parameters, and the I save the variant. Now begins the issue. If I press "SAVE VARIANT" again, report is executed....

I've solved it changing SUBMITs by CALL TRANSACTIONs in main program ("Report transaction"):

Code:
IF rb_1 IS NOT INITIAL.
    CALL TRANSACTION 'Z_TR_SUBREP1'.
  ELSEIF rb_2 IS NOT INITIAL.
    CALL TRANSACTION 'Z_TR_SUBREP2'.
  ELSE.
    CALL TRANSACTION 'Z_TR_SUBREP3'.
  ENDIF.

But is wired, isn't it? Why does this happen? I've debugged, but UCOMM from SAVE VARIANT (fcode SPOS) is handled by standard code...

Regards,
Pepa
Reply With Quote
Sponsors
  #2  
Old 01-31-2012, 08:51 PM
Portal Portal is offline
Senior Member
 
Join Date: May 2010
Location: Miami
Posts: 791
Default Re: Rare 'bug' with SUBMIT

Quote:
Then, I run the report, and press F8 to excecute (rb_1 marked). Selection-screen of Z_SUBREP1 appears.
Hi Pepa,

Based on your code snippet, it won't display the selection screen of the Z_SUBREP1. You need to have VIA SELECTION-SCREEN addition in the SUBMIT.

Moreover, I tried the same steps on ECC 6 and it works just fine. I didn't find the same behavior, what you had noticed.

Regards,
Portal
Reply With Quote
  #3  
Old 01-31-2012, 08:53 PM
Pepa Pepa is offline
Senior Member
 
Join Date: May 2010
Location: Texas
Posts: 314
Default Re: Rare 'bug' with SUBMIT

Hi Portal,

In my case, I use SUBMIT only without VIA SELECTION-SCREEN, and selection screen of the Z_SUBREP1 appears... I gonna try with VIA SELECTION-SCREEN, if bug continues.

Thansks,
Pepa
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:19 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno