Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC Session

Former Member
0 Likes
613

Hi All,

This is first time I am working on BDC. Can you correct me if I did some mistakes in the process...

Here are the steps ..

1.I did recording for a transaction FB70. And I created a programme from that recording.

2. I did all validations, and I gave default Application server path for the input file in that programme.

3. I ran That programme.

3. It asking for session. I gave name for the session , and I click on execute button. Its giving

session Name xyz

open session return code 0

close session return code 0

4. I opened sm35. There I saw the session name. And I clicked on Process. Its asking for Fore ground/ back ground. For testing purpose I gave Fore ground.

its giving "Processing of batch input session completed"

if check on Log ' It giving "Log w/o session"

And I have another doubt ..

5. I created a session. I want to execute that session every day night @ 9.00 PM. Where to do all these setting and how to do that?

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
574

Hi priya..

When you check the Session in SM35(before processing) how many transactions it contain? You can see this by Selecting The session and clicking on Statistics button.

If the No of Transactions are 0 then it will give this error. Log w/o Session.

That means your file may not contain the Data.

And....

For Processing the Session periodically in Background

We have to Schedule the Program RSBDCSUB in Tcode SM36.

before that create a Variant for this program in SE38 with the Session name as input.

REWARD IF HELPFUL.

4 REPLIES 4
Read only

Former Member
0 Likes
574

hello

go to se 38 execute this program RSBDCSUB and create variant

Sesstion Name

created on

session status

Target host

go to sm36

There is job wizard

on

1 step

Job name--zname

job class-- low , High Mediem

target server -current application server name

2 step

radio select ABAP program step

3 step

ABAP -program - RSBDCSUB

Vairnat - vairant that u have saved in RSBDCSUB program

next few steps u have decide accordingly

THanks

Read only

Former Member
0 Likes
574

Hi Priya,

is your flat file contains any data in it..?

if yes please follow the steps here...

session name should be reffered as grouid in APQI table

Ex: v_session type APQI-GROUPID

and pass this session name in BDC_OPEN_GROUP fm

build the bdc structured data using bdcdata structure for the data which you are trying to upload the data(Flat file data) into SAP.

after creating the session you have to pass the BDC structured data into BDC_INSERT fm.

Close the session using BDC_CLOSE_GROUP fm.

<b>reward points if useful</b>

Chandra

Read only

varma_narayana
Active Contributor
0 Likes
575

Hi priya..

When you check the Session in SM35(before processing) how many transactions it contain? You can see this by Selecting The session and clicking on Statistics button.

If the No of Transactions are 0 then it will give this error. Log w/o Session.

That means your file may not contain the Data.

And....

For Processing the Session periodically in Background

We have to Schedule the Program RSBDCSUB in Tcode SM36.

before that create a Variant for this program in SE38 with the Session name as input.

REWARD IF HELPFUL.

Read only

Former Member
0 Likes
574

Hi

<b>Procedural steps in data migration</b>

<u>Data Transfer Program</u>

1)Data Analysis

2) generate SAP structures

3) develop trasfer program

4) create sequential file

<u>BDC Program.</u>

5) create batch input program

6) process batch input data

7) nalyze results

😎 analyze error session

reward if usefull