Bdc session in status being created

Hi..
I have a custom program that creates bdc sessions. For some of the sessions it created, the status of the session is being created.
when i click on analysis of that session: it has
1 transaction with 8 screens in new
1 transaction with 8 screens in to process
1 transaction with 8 screens in current content
1 transaction with 8 screens in removed with - ve sign after 1 and 8.
0 transaction with 0 screens in (created, deleted, processed and incorrect)
Can someone tell me what might be the reason for the session to be in being created?
Appreciate your help and will reward helpful answers.
Thanks,
RK

Yes. As I said before thsi is because the BDC_CLOSE was not executed. You are seeign them as being created could be because soem was was tryign to debug the program and woudl have jumped out of the program half way. In this case the BDC_CLOSE would not have executed and the session will remain as 'Being created'. You dont have to worry abt it and it is purely because of partial execution of the program. You can try it on yoru own by gettign into the debugging mode and terminate the program after BDC_OPEN FM is executed. You will see another session with status beign created. The number of transaction in this session will depend on what point did you terminate the program.
- Guru
Reward points for helpful answers

Similar Messages

  • About using rsbdcsub to run BDC session .

    Hi all,
    I use rsbdcsub to run a bdc session ,
    But the job created by the program is always in "ready" status and never run(complete) .
    How can I solve the problem?
    Thanks
    Pole
    Message was edited by: gw gw

    Hi Srinivas,
    Thanks very much.You understood what I meant exectly.
    Because the files provided by the several banks systems are not the same format,so we can not use the report RFEBKA00.And now we are developing the system connecting to the bank system directly,we can get the data from the bank and upload them to the sap system without creating a file.
    So we use the FF67 BDC
    The program like this:
    "it_data" is the internal table containing the data from the bank system.
    "l_mnam1" is the session name created by the program.
    PERFORM fill_bdcdata USING:
                      'SAPMF40K'            '0110'           'X',
                      'FEBMKA-FDIS_SEL'     'X'              ' ',
                      'FEBMKA-VARI_START'   'TKL01'          ' ',
                      'FEBMKA-DEBI_MID'     'D'              ' ',
                      'FEBMKA-KRED_MID'     'K'              ' ',
                      'FEBMKA-WVAR_ART'     '2'              ' ',
                      'FEBMKA-BUCH_VAL'     'X'              ' ',
                      'BDC_OKCODE'          '=ENTE'          ' ',
                      'SAPMF40K'            '0102'           'X',
                      'FEBMKA-BANKL'        t012-bankl       ' ',
                      'FEBMKA-BANKN'        t012k-bankn      ' ',
                      'FEBMKA-WAERS'        'CNY'            ' ',
                      'FEBMKA-AZNUM'        febko-aznum      ' ',
                      'FEBMKA-AZDAT'        l_azdat          ' ',
                      'FEBMKA-SSALD'        l_esbtr          ' ',
                      'FEBMKA-ESALD'        l_ssbtr          ' ',
                      'FEBMKA-BUDTM'        l_BUDTM          ' ',
                      'FEBMKA-MNAM1'        l_mnam1          ' ',
                      'BDC_OKCODE'          '/00'            ' ',
                      'SAPMF40K'            '8000'           'X'.
      SORT it_data BY valut.
      LOOP AT it_data.
        WRITE it_data-kwbtr TO l_kwbtr CURRENCY 'CNY'.
        l_zuonr = it_data-zuonr.
        PERFORM fill_bdcdata USING:
                      'FEBMKA-VGMAN(01)'    it_data-vgman    ' ',
                      'FEBEP-VALUT(01)'     it_data-valut    ' ',
                      'FEBMKA-KWBTR(01)'    l_kwbtr          ' ',
                      'FEBMKK-ZUONR_KF(01)' it_data-zuonr    ' ',
                      'FEBMKK-SGTXT_KF(01)' l_zuonr          ' ',
                      'BDC_OKCODE'          '=ZINS'          ' ',
                      'SAPMF40K'            '8000'           'X'.
        AT LAST.
          PERFORM fill_bdcdata USING:
                      'BDC_OKCODE'          '=SICH'          ' '.
        ENDAT.
      ENDLOOP.
      PERFORM fill_bdcdata USING:
                    'SAPMF40K'            '0102'           'X',
                    'BDC_OKCODE'          '=BUCH'          ' ',
                    'SAPMF40K'            '0102'           'X',
                    'BDC_OKCODE'          '/EENDE'         ' '.
      l_mode = 'N'.
      CALL TRANSACTION 'FF67' USING t_bdcdata MODE l_mode
                              UPDATE 'S'
                              MESSAGES INTO t_msg_tab.
    Thanks again for your help.
    Pole

  • BDC Session Life Span?

    Hi All,
    I'm wondering if there is a life span for a BDC session once it is created? For example, viewing your sessions in SM35, would there be a point in time that a session will be deleted?
    Thanks,
    Scott

    if u maintain parameter keep = 'X' in the function module  then it will be there in session untill u delete it.
    if u dont maintain keep = ' ' in the function module it will automatically deleted once it session get executed.
    In some  cases how long it will be there that u can come to know if contact ur BASIS people

  • Program To Update BDC Session Status in SM35

    Existing Process : Currently we create orders using a function module which internally uses BDC Session method for transaction VA01. If the session ran successfully then we check the status and use SAVE_TEXT to upload the long text for the order. But in some cases the order fails. Then the session will be errored out in SM35 and user runs the session manually and fixes the problem and post order. So the text cannot be uploaded now as the user ran the session manually. So I wrote a Z program to run the session using program RSBDCCTU which the runs the session in forground and get the text from memory which I exported to memory while initial transaction and upload it using SAVE_TEXT after the session ran successfully. This program works fine.
    Problem : After running my Z program the order is posted and text is uploaded but the session is still in error status in SM35. The standard program RSBDCCTU just runs the session in foreground but does not update the status.
    Is there any other way we can do this or any other standard programs available to update the status of the session.
    Any help will be appreciated.

    How are you importing text in the z program, which is exported in the function module? they are totally unrelated internal sessions.
    You can as well import text and use SAVE_TEXT using user exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ after executing the error session in SM35, you don't need a Z program.
    Use condition SY-BINPT = 'X' and  T180-TRTYP = 'H' in the user exit to process SAVE_TEXT.
    Regards
    Sridhar

  • Creating Sales order texts while using BDC session method is not working

    Hi All,
    I have an existing program which creates sales order using BDC session method.( Actual program uses BAPI to create sales order and in case if any error occurs during creation of sales order BDC session is generated so that user can process it later and i am facing issues in this part of code where it uses BDC)
    I wanted to modify this BDC sesion  to update the sales order text also. I tried recording VA01 for creationg sales order text unfortunatly it is not capturing the data i am entering in the text fields.
    Please suggest if there is any way to create sales order using BDC.
    Regards
    Sheeba

    Hi Madhu,
    '=TP_CREATE' is the OK code i am getting for creating TEXTS. But the text entered are not captured in BDC.
    Part of BDC program generated for cretaing sales order texts.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=%_GC 128 22'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TP_CREATE'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=%_GC 128 22'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TP_CREATE'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EBACK'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4001'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SICH'.
    Regards,
    Sheeba

  • Mass reversal of GL docs created by BDC session

    I need to mass reverse GL documents posted in BDC session. I tried to record a BDC for F.80 but there is a problem with dynamic selections (the session name I want to reverse is in dynamic selections). The screen fields in dynamic selections have dynamic names (e.g. %%DYN001) and filling them from BDC does not work. If I replay the record created by SDHC I get the error than the field does not exist on the main program selection screen. How can I pass the session name to the BDC?
    Or, is there any alternative (e.g. BAPI/FM for mass reverse that can read the session name too)?
    thanks to all

    Hi Jan,
    I don't know this object type, so maybe there's a BAPI as you suggest.
    If you don't find one, you may pre-fill the LDB selection screen parameters by creating a little custom program, that will call the report behind F-80 using SUBMIT ... WITH FREE-SELECTIONS ... Then you may either create a Z transaction to launch this custom program, or simply use SA38/SE38 if the user is authorized to it in the productive system. Then you'll call this transaction using batch input.
    BR
    Sandra

  • How to Process "Being Created" Sessions

    Dear Experts,
    Program created sessions are tagged to be "Being Created". Can any one of you explain me how to process these sessions through a program again.?
    It would be of great help and useful answers are rewarded.
    Best Regards,
    Arunkumar S

    After BDC_CLOSE_GROUP use rsbdcsub to run the session.
    ex:
    DATA: l_abap_list       TYPE abaplist OCCURS 0 WITH HEADER LINE,
    l_ascii_list(200) TYPE c        OCCURS 0 WITH HEADER LINE.
    SUBMIT rsbdcsub AND RETURN EXPORTING LIST TO MEMORY
                         WITH mappe = c_bdcname  "Session name
                         WITH z_verarb = 'X'
                         WITH fehler = ' '.
      COMMIT WORK AND WAIT.
    Retrieve the output from memory and place into l_abap_list
      CLEAR l_abap_list.
      FREE  l_abap_list.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = l_abap_list
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc EQ 0.
        CLEAR l_ascii_list.
        FREE  l_ascii_list.
        CALL FUNCTION 'LIST_TO_ASCI'
          EXPORTING
            list_index         = -1
          TABLES
            listasci           = l_ascii_list
            listobject         = l_abap_list
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
        IF sy-subrc NE 0.
    'Unable to convert list from rsbdcsub to ascii'
          MESSAGE w368 WITH text-010.
        ENDIF.
      ENDIF.

  • BDC Sessions in Error Status

    Hello!
    I have a customer that usually have error status in BDC Sessions and they expect that original users clean up their sessions.
    But they are looking for some task in background to help them, is it possible?
    And he has another doubt:
    "How does the system store the data used in the BDC session?  If we have an error and need to correct the data or re-run the session, where will the tool pull the data for that session?  We are trying to determine if failed sessions are leaving data on the unix filesystems, etc."
    Thanks in advance,
    Daniel Kaoro Kobashigawa

    Hi,
    If you are using the BDC session methos then the error logs and other ino are stored in teh session in SM36
    We can re-process the sessiions that are error ones seen in the Error records.
    Search SDN more on this.
    We have many threads on this issue.
    If you are using the Call Transaction then we dont get the exact error but we can see the error records using BDCMSGCOLL.
    Usually both are combined to handle the data in a accurate manner.
    Regards
    Lekha

  • BDC session created as i excute I have not passed any file name

    Hello Guru's
            I  have created one BDC
    PARAMETERS : readfile LIKE rlgrap-filename DEFAULT
                 'c:\textfile.txt' LOWER CASE.
    on execute I'm passing a new file name & my BDC works fine.
    But in case i execute & do not pass any file name & cancel the same a BDC session is generated with zero values.
    How to restrict the same. Please guide.

    hi,
    make ur field obligatory..
    PARAMETERS : readfile LIKE rlgrap-filename DEFAULT
    'c:\textfile.txt' LOWER CASE OBLIGATORY.
    and make another check.
    after uploading the file to internal table, check whether it contains any value...
       IF <tab>[] IS INITIAL.
          MESSAGE 'No Data in FILE.' type 'E'.
          LEAVE LIST-PROCESSING.
       ENDIF.
    and if a blank session is generated, go to SM35 and delete that session...
    Edited by: Sukriti Saha on Oct 23, 2008 10:39 AM
    Edited by: Sukriti Saha on Oct 23, 2008 10:41 AM

  • ZXPADU02 - How To Stop It From Being Triggered in  a BDC Session

    I have an edit in ZXPADU02 that says if you are trying to change IT0167 you will get a POPUP Message telling you we don't want you doing that.   My problem is that I am using PA30 in a BDC session in another program to update IT167 and it is causing the User Exit to trigger the message, which gets an error because it can't display the POPUP.  Is there some way I can have this message NOT be triggered when I use PA30 in a BDC?

    Hi,
    You can one thing. When you are calling PA30 through BDC then you can populate some custom table with some value and in the exit check whether the custom table contains that value. If it contains then you can skip it. Other wise you can put keep some field vale in memory and then read the value from memory in the user exit.  Based on that you can modify your code.
    Thanks & Regards,
    Sandip

  • Audit Log Not Being Created

    Hi,
    I'm using the workflow application "Audit" as an activity in my custom workflow and I'm passing the required arguments.
    In the workflow trace file, I can see that the Audit application is run using the passed parameters but no record is being created matching that information in the "log" table.
    Any ideas/suggestions?
    Thanks
    Here is the trace for your information:
    Resolved reference requesterWSUser = object
    Assigning requesterFullName = Test1 Manager1
    Action Set Audit Resources List
    Result title set to 'Set Audit Resources List'
    Evaluating XPRESS
    Resolved reference approved = false
    Resolved reference auditApps = [AD_Simulated]
    Resolved reference auditApps = [AD_Simulated]
    Assigning depApps = [AD_Simulated]
    Action Audit
    Result title set to 'Audit'
    Iterating over depApps = [AD_Simulated]
    Iteration 0
    app = AD_Simulated
    Argument op = audit
    Argument type = User
    Argument status = success
    Argument action = View
    Argument reason = User Access Recertification
    Argument subject = TestManager1
    Resolved reference user.waveset.organization = null
    Resolved reference app = AD_Simulated
    Resolved reference app = AD_Simulated
    Argument resource = AD_Simulated
    Resolved reference enduserId = testuser4
    Argument accountId = testuser4
    Resolved reference enduserView.accounts[Lighthouse].firstname = Test4
    Resolved reference enduserView.accounts[Lighthouse].lastname = User4
    Resolved reference enduserId = testuser4
    Resolved reference requesterFullName = Test1 Manager1
    Argument error = The access of the user Test4 User4(testuser4) has been recertified by Test1 Manager1
    Calling application 'com.waveset.session.WorkflowServices'
    Application requested argument op
    Application requested argument logResultErrors
    Application requested argument action
    Application requested argument status
    Application requested argument type
    Application requested argument subject
    Application requested argument name
    Application requested argument resource
    Application requested argument accountId
    Application requested argument error
    Application requested argument parameters
    Application requested argument attributes
    Application requested argument originalAttributes
    Application requested argument overflowAttributes
    Application requested argument auditableAttributesList
    Application requested argument organizations
    Step complete 'Audit'
    Step inactive 'Display Message'
    -------------------------------------------------------------------------

    I agree with the anokun7. Check to make sure the action your are giving it is a valid one. ( See IDM Workflow Forms and Views pdf and search for Action Names, it will give you a list of all the valid actions) Also you can add your own attributes to the Audit object as well using the attributes variable. ( It expects a map: <map>
    <s>Key</s>
    <ref>value</ref>
    <map>
    Value can be a reference, or string, or however complex you want to make it. Just be aware of what view (if any) is available at the time you call the audit. Hope this helps
    Message was edited by:
    dmac28
    Oh yeah..The attributes will appear on the audit log reports, Based on what action and type you audited it will show up on that record. i.e Delete action, on Type User...that audit record will have a changes value which will have whatever attributes you passed to the audit object.

  • Capturing Batch Input Log without keeping BDC session

    Hi all -
    Would like to capture the Batch Input log and keep it persistent in some manner (for example using an application log) without keeping the corresponding BDC session.  The reason for this is that any manual corrections to data interfaces through BDC sessions MUST be logged indefinitely for audit purposes.  The actual BDC sessions are HUGE and therefore precludes saving the entire BDC session.  My thoughts are user-exit'ing in BDC session either as a Batch Input Log is being created or when a Session is being deleted (NOTE: running ECC 6.0 which has new enhancement concept permitting extremely flexible user-exit'ing so exit points are NOT an issue and repair/core mode not required).  Anyone see any flaws with this approach or can recommend perhaps a simpler or standard approach so that Batch Input Logs are retained indefinitely whereas the Session is deleted?
    Many thanks,
    Pat

    Hi Pat,
    Why dont you try archiving?
    For archiving, archive object BDCLOGPROD can be used. if archived, then you can read the archived logs using program RSBDC_ARCHREAD (also accessible from SARA->Read).
    See some notes if it is helpful:
    147354, 18319, 24438, 18307
    Also have a look at the Data Management Guide available at service.sap.com/data-archiving.
    Hope this helps,
    Naveen

  • Immediate Processing of BDC Session

    Hi ,
    In my Invoice Ouput Program ( RLB_INVOICE ), i m trying to call a transaction via BDC. The program is triggered at the point of saving VF01. But i think it does not allow us to Call a Transaction from within that program,so it throws up an 'Express Message'( ie, the program is terminated). i think Session method will work here but the problem is , i want that session to get processed immediately(in background).  How can i achieve this??
    ur valuable inputs awaited.
    Thanks & Regards,
    Bikash

    Thanks Srinivas, u ve made me feel a little comfortable now... u ve got my problem. i removed the SUBMIT in my program and found out that:
    1. when i execute the report independently, a NEW session gets generated in SM35...no problem..
    2. when i execute using VF01, i see that a session <b>IS</b> Generated, BUT NOT IN NEW CATEGORY, its in BEING CREATED column, and thats the reason the session doesnt process even when i run RSBDCSUB after that. dats the problem i suppose...
    This is the code in the output program :
         Print of a invoice by SAPscript SMART FORMS               *
    REPORT rlb_invoice.
    declaration of data
    INCLUDE rlb_invoice_data_declare.
    definition of forms
    INCLUDE rlb_invoice_form01.
    INCLUDE rlb_print_forms.
    *C-----BDC for reversal
    INCLUDE <b>zbdcrecx2</b>.  " only session method
          FORM ENTRY
    FORM entry USING return_code us_screen.
      TABLES: bkpf,vbrk.
      DATA: lf_retcode TYPE sy-subrc.
      CLEAR retcode.
      xscreen = us_screen.
      PERFORM processing USING us_screen
                         CHANGING lf_retcode.
    IF lf_retcode NE 0.
       return_code = 1.
    ELSE.
      return_code = 0.
    ENDIF.
    ENDFORM.                    "ENTRY
          FORM PROCESSING                                               *
    FORM processing USING proc_screen
                    CHANGING cf_retcode.
      DATA: ls_print_data_to_read TYPE lbbil_print_data_to_read.
      DATA: ls_bil_invoice TYPE lbbil_invoice.
      DATA: lf_fm_name            TYPE rs38l_fnam.
      DATA: ls_control_param      TYPE ssfctrlop.
      DATA: ls_composer_param     TYPE ssfcompop.
      DATA: ls_recipient          TYPE swotobjid.
      DATA: ls_sender             TYPE swotobjid.
      DATA: lf_formname           TYPE tdsfname.
      DATA: ls_addr_key           LIKE addr_key.
      DATA: ls_dlv-land           LIKE vbrk-land1.
      DATA: ls_job_info           TYPE ssfcrescl.
    C**BDC for F-02 ( Reversal of line items of accounting document)
      DATA : t_bseg TYPE TABLE OF bseg WITH HEADER LINE.
      TYPES: BEGIN OF tp_reverse,
             wrbtr_01 LIKE bseg-wrbtr,
             wrbtr_40 LIKE bseg-wrbtr,
             wrbtr_50 LIKE bseg-wrbtr,
             bschl_01(2),
             bschl_40(2),
             bschl_50(2),
             hkont_01(10),
             hkont_40(10),
             hkont_50(10),
             prctr_40(10),
             prctr_50(10),
             END OF tp_reverse.
      DATA : t_reverse TYPE tp_reverse.
      DATA : g_wrbtr_01(15),
             g_wrbtr_40(15),
             g_wrbtr_50(15),
             g_date(8),
             g_vbeln(10),
             g_belnr(10).
    SmartForm from customizing table TNAPR
      lf_formname = tnapr-sform.
    determine print data
      PERFORM set_print_data_to_read USING    lf_formname
                                     CHANGING ls_print_data_to_read
                                     cf_retcode.
      IF cf_retcode = 0.
    select print data
        PERFORM get_data USING    ls_print_data_to_read
                         CHANGING ls_addr_key
                                  ls_dlv-land
                                  ls_bil_invoice
                                  cf_retcode.
      ENDIF.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = ls_bil_invoice-hd_gen-bil_number
        IMPORTING
          output = g_vbeln.    "billing document number
    C*billing document no. used to pick up the accounting doc no.
      SELECT SINGLE belnr INTO g_belnr FROM bseg WHERE vbeln = g_vbeln.
      SELECT * FROM bseg INTO TABLE t_bseg
      WHERE belnr = '0000800643'.
      CLEAR t_reverse.
        LOOP AT t_bseg WHERE ( ( bschl = '01' ) OR
      ( bschl = '40' AND hkont = '0000542001' ) OR
      ( bschl = '50' AND hkont = '0000700000' ) ).
    LOOP AT t_bseg WHERE ( ( bschl = '01' ) OR
    ( bschl = '40' AND hkont = '0000542040' ) OR
    ( bschl = '50' AND hkont = '0000720080' ) ).
        CASE t_bseg-bschl.
          WHEN '01'.
            t_reverse-wrbtr_01 = t_reverse-wrbtr_01 + t_bseg-wrbtr.
            t_reverse-bschl_01 = '11'.
            t_reverse-hkont_01 = t_bseg-kunnr.
          WHEN '40'.
            t_reverse-wrbtr_40 = t_reverse-wrbtr_40 + t_bseg-wrbtr.
            t_reverse-bschl_40 = '50'.
            t_reverse-hkont_40 = t_bseg-hkont.
            t_reverse-prctr_50 = t_bseg-prctr.
          WHEN '50'.
            t_reverse-wrbtr_50 = t_reverse-wrbtr_50 + t_bseg-wrbtr.
            t_reverse-bschl_50 = '40'.
            t_reverse-hkont_50 = t_bseg-hkont.
            t_reverse-prctr_40 = t_bseg-prctr.
        ENDCASE.
      ENDLOOP.
      g_wrbtr_01 = t_reverse-wrbtr_01.
      g_wrbtr_40 = t_reverse-wrbtr_40.
      g_wrbtr_50 = t_reverse-wrbtr_50.
      g_date(2) = sy-datum+6(2).
      g_date2(2) = sy-datum4(2).
      g_date+4(4) = sy-datum(4).
      CONDENSE: g_wrbtr_01,g_wrbtr_40,g_wrbtr_50.
      PERFORM open_group.
      PERFORM bdc_dynpro      USING 'SAPMF05A' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RF05A-NEWKO'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'BKPF-BLDAT'
                                    g_date.
      PERFORM bdc_field       USING 'BKPF-BUKRS'
                                    '1000'.
      PERFORM bdc_field       USING 'BKPF-BUDAT'
                                    g_date.
      PERFORM bdc_field       USING 'BKPF-WAERS'
                                    'INR'.
      PERFORM bdc_field       USING 'BKPF-BKTXT'
                                    'AMC REVERSAL'.
      PERFORM bdc_field       USING 'RF05A-NEWBS'
                                    t_reverse-bschl_01.
      PERFORM bdc_field       USING 'RF05A-NEWKO'
                                    t_reverse-hkont_01.
      PERFORM bdc_dynpro      USING 'SAPMF05A' '0301'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'BSEG-SGTXT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'BSEG-WRBTR'
                                    g_wrbtr_01.
      PERFORM bdc_field       USING 'RF05A-NEWBS'
                                    t_reverse-bschl_40.
      PERFORM bdc_field       USING 'RF05A-NEWKO'
                                    t_reverse-hkont_40.
      PERFORM bdc_dynpro      USING 'SAPMF05A' '0300'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'BSEG-SGTXT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'BSEG-WRBTR'
                                    g_wrbtr_40.
      PERFORM bdc_field       USING 'RF05A-NEWBS'
                                   t_reverse-bschl_50.
      PERFORM bdc_field       USING 'RF05A-NEWKO'
                                   t_reverse-hkont_50.
      PERFORM bdc_dynpro      USING 'SAPLKACB' '0002'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'COBL-PRCTR'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTE'.
      PERFORM bdc_field       USING 'COBL-PRCTR'
                                     t_reverse-prctr_40.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTE'.
      PERFORM bdc_dynpro      USING 'SAPMF05A' '0300'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RF05A-NEWKO'.
      PERFORM bdc_field       USING 'BSEG-WRBTR'
                                    g_wrbtr_50.
      PERFORM bdc_dynpro      USING 'SAPLKACB' '0002'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'COBL-PRCTR'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTE'.
      PERFORM bdc_field       USING 'COBL-PRCTR'
                                     t_reverse-prctr_50.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTE'.
      PERFORM bdc_dynpro      USING 'SAPMF05A' '0300'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RF05A-NEWKO'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BU'.
      PERFORM bdc_dynpro      USING 'SAPLKACB' '0002'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'COBL-PRCTR'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTE'.
      PERFORM bdc_field       USING 'COBL-PRCTR'
                                     t_reverse-prctr_50.
      PERFORM bdc_transaction USING 'F-02'.
    C*running the Session Immediately using variant AMC
    SUBMIT rsbdcsub USING SELECTION-SET 'AMC'.
    ENDFORM.                    "PROCESSING
    MY INCLUDE :
    ***INCLUDE ZBDCRECX2.
    for programs doing a data transfer by creating a batch-input session
    and
    for programs doing a data transfer by CALL TRANSACTION USING
      data definition
          Batchinputdata of single transaction
    DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
          messages of call transaction
    DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
          error session opened (' ' or 'X')
    DATA:   E_GROUP_OPENED.
          message texts
    TABLES: T100.
      open dataset                                                       *
    FORM OPEN_DATASET USING P_DATASET.
      OPEN DATASET P_DATASET
                   FOR INPUT IN TEXT MODE
                   ENCODING DEFAULT.
      IF SY-SUBRC <> 0.
        WRITE: / TEXT-E00, SY-SUBRC.
        STOP.
      ENDIF.
    ENDFORM.
      close dataset                                                      *
    FORM CLOSE_DATASET USING P_DATASET.
      CLOSE DATASET P_DATASET.
    ENDFORM.
      create batchinput session                                          *
      (not for call transaction using...)                                *
    FORM OPEN_GROUP.
        CALL FUNCTION 'BDC_OPEN_GROUP'
             EXPORTING  CLIENT   = SY-MANDT
                        GROUP    = 'AMC_REVERSAL'
                        USER     = sy-uname.
    ENDFORM.
      end batchinput session                                             *
      (call transaction using...: error session)                         *
    FORM CLOSE_GROUP.
        CALL FUNCTION 'BDC_CLOSE_GROUP'.
    ENDFORM.
           Start new transaction according to parameters                 *
    FORM BDC_TRANSACTION USING TCODE.
      DATA: L_MSTRING(480).
      DATA: L_SUBRC LIKE SY-SUBRC.
        CALL FUNCTION 'BDC_INSERT'
             EXPORTING TCODE     = TCODE
             TABLES    DYNPROTAB = BDCDATA.
      REFRESH BDCDATA.
    ENDFORM.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> '/'.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.

  • Accounts being created with administrative group rights

    Hello,
    The server is a Windows 2003 R2 Enterprise fully patched used for Shared Hosting purposes.  It runs Hsphere control panel.  I am trying to identify how the following hack is happening. 
    1) There are users being created with Administrative group rights.   Below is the EventViewer log for the user creation:
    User Account Created:
         New Account Name:    username
         New Domain:    PCNAME
         New Account ID:    PCNAME\username
         Caller User Name:    PCNAME$
         Caller Domain:    DOMAINNAME
         Caller Logon ID:    (0x0,0x3E7)
         Privileges        -
     Attributes:
         Sam Account Name:    username
         Display Name:    <value not set>
         User Principal Name:    -
         Home Directory:    <value not set>
         Home Drive:    <value not set>
         Script Path:    <value not set>
         Profile Path:    <value not set>
         User Workstations:    <value not set>
         Password Last Set:    <never>
         Account Expires:    <never>
         Primary Group ID:    513
         AllowedToDelegateTo:    -
         Old UAC Value:    0x2DAB2B0
         New UAC Value:    0x2DAB2B0
         User Account Control:    -
         User Parameters:    <value not set>
         Sid History:    -
         Logon Hours:    <value changed, but not displayed>
    There exists entries as well where the primary group ID is changed to the Administrative group, but I am omitting such.
    2) I tried to identify what Caller Logon ID:    (0x0,0x3E7) means.  I found out from here:
     http://blog.joeware.net/2013/01/14/2667/ that I can use LogonSessions.exe to identify it.
    Output from LogonSessions.exe is pasted below (snippet):
    [0] Logon session 00000000:000003e7:
        User name:    DOMAINNAME\PCNAME$
        Auth package: NTLM
        Logon type:   (none)
        Session:      0
        Sid:          S-1-5-18
        Logon time:   9/11/2014 12:41:53 PM
        Logon server:
        DNS Domain:   
        UPN:          
            4: System
          316: smss.exe
          364: csrss.exe
          392: winlogon.exe
          440: services.exe
          452: lsass.exe
          628: svchost.exe
          756: LMAgent.exe
          840: svchost.exe
         1000: spoolsv.exe
         1252: avagent.exe
         1268: camWMIAgent.exe
         1324: cissesrv.exe
         1380: cpqrcmc.exe
         1404: vcagent.exe
         1440: svchost.exe
         1480: HsQuotas.exe
         1740: inetinfo.exe
         1780: EmailAgent.exe
         1856: snmp.exe
         1884: sysdown.exe
         1920: smhstart.exe
         2192: svchost.exe
         2388: cmd.exe
         2396: hpsmhd.exe
         2444: cqmgserv.exe
         2464: cqmgstor.exe
         2484: HSphere.exe
         2596: wmiprvse.exe
         2676: cmd.exe
         2684: rotatelogs.exe
         2692: cmd.exe
         2700: rotatelogs.exe
         2732: searchindexer.exe
         2812: hpsmhd.exe
         2824: cqmghost.exe
         2852: svchost.exe
         3044: cmd.exe
         3052: rotatelogs.exe
         3080: cmd.exe
         3088: rotatelogs.exe
         5452: svchost.exe
         5596: GravitixService.exe
         7392: csrss.exe
         7232: winlogon.exe
         6888: csrss.exe
         9832: winlogon.exe
        10388: wawrapper.exe
        10352: cpqnimgt.exe
         9496: msiexec.exe
         6068: w3wp.exe
         4748: webalizer.exe
    3) I also learned from http://support.microsoft.com/kb/243330/en-us that   Sid:          S-1-5-18 means:
    SID: S-1-5-18
    Name: Local System
    Description: A service account that is used by the operating system
    That is all great info, but I am not sure I can put together what I have learned to attempt and get closer towards identifying how in the world users are being created and then being assigned administrative group rights.
    I am a Linux person mostly, but I am comfortable following a properly explained thread regarding windows 2003 R2 Enterprise issues.
    The server is fully patched and it is running Lumension security product.  What's more, Norman Malware tracker, tdskiller.exe (Kaspersky) and McAfee rootkitremover.exe have been run without any apparent Malware/Virus infection
    Hope someone with advanced admin skills can advise.
    Thank you

    Hi,
    You mentioned that, “I am trying to identify how the following hack is happening”, would you please tell us that why did you think the event represent a hacking behavior?
    In a Shared Server Hosting environment, the underlying hosting control panel tool (Hsphere in this case) should be creating only virtual FTP users with a specific group.  So no users with Administrative group should be ever created.  If this happens,
    it constitutes a breach of server security=positive hacking attempt.
    >how in the world users are being created and then being assigned administrative group rights.
    In addition, would you please be more specific about this question? Did you find the event message on a domain joined machine?
    I want to be able to understand in full how/what process is allowing users to be created with Admin rights.  In other words, I want to know what IP was used to issue the command, if ASP.net was used (abused in this case), or anything else related to
    it so that we can patch this particular hole.
    Best Regards,
    Amy

  • URGENT - HOW TO PROCESS A BDC SESSION (IN BACKGROUND) FROM INSIDE A REPORT

    Hi All,
    I have a requirement wherein I need to create a BDC session for mass update(from file) of one transaction and check if at all that update has taken place and proceed with the same session for another transaction.
    For this I need to know how to process the session in background in a report, so that if the processing is done, the next set of data to update a different transaction can happen.
    All inputs are welcome and highly valuable to me.
    If someone is unable to intrepret this, I'll detail it again.
    Thanks in advance,
    Vaishnavi Varadarajan

    Hi,
    1.Use RSBDCDRU is an exe pg.With this u can download the logs into local file.
    2.It will create the spool request .from there u can download or print.
    OtherWise:
    Use the code from the link below. U need to provide the session queue id as input and it will download the log to an excel file. U can change it to  ur reqmt.
    Re: BDC
    regards
    kiran

Maybe you are looking for

  • After increasing redo log groups we are getting given alerts continvously

    earlier having 6 redo log groups with 32 MB.but 7 days back our database was hangs .no one was able to login into sqlplus except sys user ,but not able to perform any dml operation.after rebooting our 2-node RAC instances it was running fine nearly a

  • Masking sensitive data in the messages?

    All, We are getting some sensitive data from a legacy system that needs to be imported into R/3. There is a translation service - that translates the sensitive data into public format. The question i have is - though we will be able to use XI to call

  • Entourage 2008 Mail Import Issues

    Any suggestion on how I can transfer stored email folders on my POP email accounts on Mac Mail over to Entourage 2008? I have years of emails stored in different folders.

  • CRM 2007 in Federeted Portal Environment?

    Hi, we actually use CRM 4.0 in a portal environment and are about to upgrade to CRM 2007. To reduce the release dependencies (not only for CRM, also for BI, ...) we think about setting up a Federated Portal environment. Does anybody have experience w

  • Is Photoshop Elements 13 available for Mac?

    See above.