‎2008 Apr 02 11:19 AM
Hi,
I am calling rvv50r10a program in my report using submit command. I created a variant in the selection screen of rvv50r10a. Now I want Deliv.creation date to have space for both low and high value. Am not able to save the high value as SPACE in the variant. How to make the high value as space.
Please advice.
Regards,
Vanathi
‎2008 Apr 02 2:47 PM
Have a look at the following code and put space as high and low value in the range table for delivery creation date. Instead of creating a variant try doing it as in the following code.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME1
IMPORTING
JOBCOUNT = JOBCOUNT1
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 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.
ELSE.
SUBMIT RHALEINI
WITH SELECTION-TABLE RSPAR_TAB1
WITH PCHOTYPE EQ 'P'
WITH PCHPLVAR EQ '01'
WITH PCHZTR_D EQ 'X'
WITH RCVPRN EQ S_PART
VIA JOB JOBNAME1 NUMBER JOBCOUNT1
AND RETURN.
IF SY-SUBRC EQ 0.
WRITE / TEXT-A00.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = JOBCOUNT1
JOBNAME = JOBNAME1
STRTIMMED = 'X'
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 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.
‎2008 Apr 02 3:11 PM
You can't have SPACE value for both LOW and HIGH.
If you don't want any value for the delivery creation date field, save the variant without any values.
Hope this helps.
Thanks,
Balaji
‎2008 Apr 02 7:05 PM
Hi,
I understand that you want to have space in both low and high field of delivery date for the called program... which means you dont want to pass any value to the date selection parameter of the called program.
So, the solution is Do not populate any field - kind, sign etc for the delivery date... i.e. ignore this field while populating the selection parameter table for calling the program using Submit.
Hope it answers.
Regards, Tapas
<Pls reward if useful or answered>
‎2008 Apr 02 7:11 PM
Hi,
Donot input anything in the Deliv.creation date and save the variant it is equivalent to space.
Thanks,
Sriram Ponna.