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

Missing session in SM35

Former Member
0 Likes
2,048

Hello Experts,

There is an issue like while uploading file to a Z transaction everything looks ok but the file does not appear in SM35 so can anybody guide me what & where should i check..??

Regards,

Nisha

7 REPLIES 7
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,348

what do you mean by no files uploaded in SM35 ...

Have you already check for errors .

Read only

Former Member
0 Likes
1,348

Hi Sandeep,

Session name is missing in SM35.

Regards,

Nisha

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,348

You have to build it manually in your program

using fm

CALL FUNCTION 'BDC_OPEN_GROUP'

EXPORTING

client = sy-mandt

group = p_sess

user = p_user.

CALL FUNCTION 'BDC_INSERT'

EXPORTING

tcode = pu_tcode

TABLES

dynprotab = i_bdcdata[].

CALL FUNCTION 'BDC_CLOSE_GROUP'.

Read only

Former Member
0 Likes
1,348

Nisha,

The problem could be in your code. Make sure you are passing Session name in the BDC_OPEN_GROUP function module and your session should have records to process.

And apart from that you should code like this.

BDC_OPEN_GROUP ( make sure to paas the session name in GROUP parameter of this FM)

Loop at your internal table having values

BDC_INSERT

Endloop.

BDC_CLOSE_GROUP.

Please let us know if you are having some doubts.

Cheers

VJ

Read only

Former Member
0 Likes
1,348

Hi VJ,

I am using standard program RFBIBL01 to upload the file.

And i find CALL transaction & BDC session related statements to be greyed out in the code.

Please help.

Regards,

Nisha

Read only

0 Likes
1,348

Hi Nisha,

If you are using a BDC session, when you open the group you need to be sure to check the parameter KEEP.

This will keep your session in SM35 even if it was sucessfuly.

Take a look at this example.

Matheus

CALL FUNCTION 'BDC_OPEN_GROUP'

EXPORTING

client = sy-mandt

group = v_group

user = sy-uname

keep = 'X'

EXCEPTIONS

client_invalid = 1

destination_invalid = 2

group_invalid = 3

group_is_locked = 4

holddate_invalid = 5

internal_error = 6

queue_error = 7

running = 8

system_lock_error = 9

user_invalid = 10

OTHERS = 11.

Read only

Former Member
0 Likes
1,348

Hi All,

Thanks for all valuable inputs.

I got the solution,it was due to some interface error.ZS13 transaction called one interface which had some issues.

Regards,

Nisha Verma