‎2009 Nov 12 9:34 AM
HI
My requirement is like this..
if checkbox is checked on sel scree, then bdc session created shud be submitted automatically
otherwise not, it shud only be created.
i can do this by 'RSBDCSUB', but this prog has date on sel screen, i can submit this program with my session name
but all those sessions that are ceated on that date will be processed, but user might run my prog twice
and checks the checkbox only once, then only that time session should be processed, not any other,
sessions name will be same everytime.
how to achieve this
Regards
Manu
‎2009 Nov 12 12:48 PM
hi,
Try in the followng manner.
SUBMIT rsbdcsub WITH mappe EQ v_session ""v_session contains the session name you have created in your program
WITH von EQ sy-datum
WITH bis EQ sy-datum
WITH booked EQ 'X'
WITH err EQ ' '
AND RETURN.
Regards
Umakanth
‎2009 Nov 12 1:46 PM
Manu,
Use the paramter QUEUE_ID of the RSBDCSUB program while submitting. Fill this parameter by the value you obtained from the exporting parameter QID of function module BDC_OPEN_GROUP. Remember the parameter QUEUE_ID is part of the selection screen of RSBDCSUB program but with NO-DISPLAY attribute.
Regards,
Kiran Bobbala
‎2009 Nov 12 2:14 PM
Hi,
Use Open group and Close Group perform routines and add this code it will post automatically
FORM release_bdc.
DATA:v_qid type apqi-qid.
SUBMIT rsbdcsub WITH mappe EQ p_group
WITH von EQ sy-datum
WITH bis EQ sy-datum
WITH fehler EQ '.'
EXPORTING LIST TO MEMORY
AND RETURN.
SUBMIT rsbdcsub WITH mappe EQ p_group "v_session contains the session name you have created in your program
WITH von EQ sy-datum
WITH bis EQ sy-datum
AND RETURN.
Displaying session for errors
selection for qid to display session log
SELECT SINGLE qid
INTO v_qid FROM
apqi WHERE
datatyp = 'BDC'
AND groupid = p_group
AND progid = sy-repid
AND userid = sy-uname
AND credate = sy-datum.
IF v_qid IS NOT INITIAL.
submit the program for BDC session error log
SUBMIT rsbdc_protocol
WITH session EQ p_group
WITH user EQ sy-uname
WITH queue_id EQ v_qid
AND RETURN.
ENDIF.
ENDFORM. " release_bdc
Regards,
Manesh.R