<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CALL TRANSACTION AND SESSION METHODS PROGRAM NEEDED FOR XK01 TRANSACTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233512#M1209581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod" target="test_blank"&gt;http://sap.niraj.tripod&lt;/A&gt; dot com/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u,&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2009 07:42:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-23T07:42:31Z</dc:date>
    <item>
      <title>CALL TRANSACTION AND SESSION METHODS PROGRAM NEEDED FOR XK01 TRANSACTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233511#M1209580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;i am new to bdc, my task is to write a program for call transaction as well as session method for the transaction xk01,i kindly request you to send me the program code for the following requirement.&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;removed_by_moderator&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Feb 23, 2009 9:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 07:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233511#M1209580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T07:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: CALL TRANSACTION AND SESSION METHODS PROGRAM NEEDED FOR XK01 TRANSACTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233512#M1209581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod" target="test_blank"&gt;http://sap.niraj.tripod&lt;/A&gt; dot com/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u,&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 07:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233512#M1209581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T07:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: CALL TRANSACTION AND SESSION METHODS PROGRAM NEEDED FOR XK01 TRANSACTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233513#M1209582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this report which have both call transaction and session mothods are used.&lt;/P&gt;&lt;P&gt;report XXX&lt;/P&gt;&lt;P&gt;data:it_bdctab like bdcdata occurs 0 with header line,&lt;/P&gt;&lt;P&gt;     it_mestab like bdcmsgcoll occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;        mbrsh like mara-mbrsh,&lt;/P&gt;&lt;P&gt;        mtart like mara-mtart,&lt;/P&gt;&lt;P&gt;        maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;        meins like mara-meins,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_success occurs 0  ,&lt;/P&gt;&lt;P&gt;        matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;      end of it_success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_error occurs 0,&lt;/P&gt;&lt;P&gt;        lineno type i,&lt;/P&gt;&lt;P&gt;        message type string,&lt;/P&gt;&lt;P&gt;      end of it_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_rec_count type i,&lt;/P&gt;&lt;P&gt;      v_error type i,&lt;/P&gt;&lt;P&gt;      v_success type i,&lt;/P&gt;&lt;P&gt;      v_index type sy-tabix,&lt;/P&gt;&lt;P&gt;      v_flag type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;  parameters: p_path type rlgrap-filename,&lt;/P&gt;&lt;P&gt;              p_trans radiobutton group gr default 'X',&lt;/P&gt;&lt;P&gt;              p_sess radiobutton group gr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform get_file_path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;perform upload_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform build_bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_sess = 'x'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform session_method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif p_trans = 'x'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;submit data to Call transaction.&lt;/P&gt;&lt;P&gt;  perform call_transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;form get_file_path .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'F4_FILENAME'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt;   program_name        = syst-cprog&lt;/P&gt;&lt;P&gt;   dynpro_number       = syst-dynnr&lt;/P&gt;&lt;P&gt;   field_name          = ' '&lt;/P&gt;&lt;P&gt; importing&lt;/P&gt;&lt;P&gt;   file_name           = p_path.&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;endform.                    " Get_file_path&lt;/P&gt;&lt;P&gt;form upload_file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:file_name type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_name = p_path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    filename                      = file_name&lt;/P&gt;&lt;P&gt;   filetype                      = 'ASC'&lt;/P&gt;&lt;P&gt;   has_field_separator           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIRUS_SCAN_PROFILE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCESS_DENIED                 = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISK_FULL                     = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_TIMEOUT                    = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 17&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " Upload_file&lt;/P&gt;&lt;P&gt;form build_bdc .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform fill_bdc using : 'X' 'SAPLMGMM' '0060',&lt;/P&gt;&lt;P&gt;                         ' ' 'BDC_OKCODE' '=AUSW',&lt;/P&gt;&lt;P&gt;                         ' ' 'RMMG1-MATNR' 'itab-matnr',&lt;/P&gt;&lt;P&gt;                         ' ' 'RMMG1-MBRSH' 'itab-mbrsh',&lt;/P&gt;&lt;P&gt;                         ' ' 'RMMG1-MTART' 'itab-mtart',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                         'X' 'SAPLMGMM' '0070',&lt;/P&gt;&lt;P&gt;                         ' ' 'BDC_OKCODE' '=ENTR',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                         'X' 'SAPLMGMM' '4004',&lt;/P&gt;&lt;P&gt;                         ' ' 'BDC_OKCODE' '=BU',&lt;/P&gt;&lt;P&gt;                         ' ' 'MAKT-MAKTX' 'itab-maktx',&lt;/P&gt;&lt;P&gt;                         ' ' 'MARA-MEINS' 'itab-meins'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " build_bdc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fill_bdc  using    p_flag p_name p_value . "value(p_0165)&lt;/P&gt;&lt;P&gt;                                                "value(p_0166)&lt;/P&gt;&lt;P&gt;                                                "value(p_0167).&lt;/P&gt;&lt;P&gt;if p_flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_bdctab-program = p_name.&lt;/P&gt;&lt;P&gt;    it_bdctab-dynpro = p_value.&lt;/P&gt;&lt;P&gt;    it_bdctab-dynbegin = p_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append it_bdctab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif not p_value is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_bdctab-fnam = p_name.&lt;/P&gt;&lt;P&gt;    it_bdctab-fval = p_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append it_bdctab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform.                    " fill_bdc&lt;/P&gt;&lt;P&gt;form call_transaction .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'mm01' using it_bdctab&lt;/P&gt;&lt;P&gt;                        mode 'n'&lt;/P&gt;&lt;P&gt;                        update 's'&lt;/P&gt;&lt;P&gt;                        messages into it_mestab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table it_mestab with key msgtyp = 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_success-matnr = it_mestab-msgv1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append it_success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_success = v_success  + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_mestab with key msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;       id              = sy-msgid&lt;/P&gt;&lt;P&gt;       lang            = '-D'&lt;/P&gt;&lt;P&gt;       no              = sy-msgno&lt;/P&gt;&lt;P&gt;       v1              = sy-msgv1&lt;/P&gt;&lt;P&gt;       v2              = sy-msgv2&lt;/P&gt;&lt;P&gt;       v3              = sy-msgv3&lt;/P&gt;&lt;P&gt;       v4              = sy-msgv4&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;       msg             = it_error-message&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;       not_found       = 1&lt;/P&gt;&lt;P&gt;     others          = 0&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_error-lineno = v_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append it_error.&lt;/P&gt;&lt;P&gt;    v_error = v_error + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform.                    " call_transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form session_method .&lt;/P&gt;&lt;P&gt;if p_sess = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     client                    = sy-mandt&lt;/P&gt;&lt;P&gt;     group                     = 'SREEVANI'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    HOLDDATE                  = FILLER8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     keep                      = 'X'&lt;/P&gt;&lt;P&gt;     user                      = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BDC_INSERT'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt;   tcode                  = 'mm01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    dynprotab              = it_bdctab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERNAL_ERROR         = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_OPEN               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  QUEUE_ERROR            = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TCODE_INVALID          = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PRINTING_INVALID       = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSTING_INVALID        = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 7&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BDC_CLOSE_GROUP'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_OPEN          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  QUEUE_ERROR       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS            = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " session_method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u,&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 07:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233513#M1209582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T07:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: CALL TRANSACTION AND SESSION METHODS PROGRAM NEEDED FOR XK01 TRANSACTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233514#M1209583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its easy. &lt;/P&gt;&lt;P&gt;1, Goto Transaction SHDB. &lt;/P&gt;&lt;P&gt;2, Click on New Recording&lt;/P&gt;&lt;P&gt;3, Give your Recording a Name&lt;/P&gt;&lt;P&gt;4, Provide the Transaction below it XK01 and press enter&lt;/P&gt;&lt;P&gt;5, fill in all fields that you think has to be filled in&lt;/P&gt;&lt;P&gt;6, save the vendor.&lt;/P&gt;&lt;P&gt;7, now save the Recording and click on Back.&lt;/P&gt;&lt;P&gt;8, Select the recording you have done.&lt;/P&gt;&lt;P&gt;9, Click on Create Porgram&lt;/P&gt;&lt;P&gt;10, Select from recording and give all the details it asks for and save it. &lt;/P&gt;&lt;P&gt;Now you have to make some small changes like Using Gui Upload if your file is in front end or depending on your requirement.&lt;/P&gt;&lt;P&gt;Remove defaulted values which you'll find in performs and setit with the proper fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate it and execute you'll get both you asked for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 15:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-and-session-methods-program-needed-for-xk01-transaction/m-p/5233514#M1209583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T15:18:33Z</dc:date>
    </item>
  </channel>
</rss>

