Skip to Content

bdc session submit automatically

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2009 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2009 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2009 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.