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

Problem with Application server upload

UdayS
Participant
0 Likes
2,085

Hello Experts,

I am creating a file in the application server from my internal table. Using OPEN DATA SET, Transfer Data, Close Data Set. Thing is i am unable to see all the columns getting uploaded in that file. I tried to download the same but even the downloaded file contains the reduced coloumns which were seeming in AL11.

I am using that file for creating Batch Input session which is failing because of that missing data.

I tried to condense the data, giving lenght specification.. but it is not working. Please provide me the way to upload the complete data into application server.


  CONDENSE g35_bgr00.
  TRANSFER g35_bgr00 TO p_output LENGTH 2000.

Thanks & Regards,

Uday S.

13 REPLIES 13
Read only

Former Member
0 Likes
1,539

Hi Uday,

You can transfer 255 characters only in a line.

Regards,

Kritesh shah

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,539

Hello Kritesh,

From where did you get this info ?

I have some reservations on this. Please verify & correct me if i am wrong.

@OP: What is the length of the structure you are trying to write into the app. server file? If possible share the structure details.

BR,

Suhas

Read only

Former Member
0 Likes
1,539

Please close this duplicate post and continue with the other one

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,539

Open dataset in binary mode that will help solve your problem

Regards,

Nabheet Madan

Read only

Former Member
0 Likes
1,539

So you confirm that there is data in the application server file and that there is a problem with the input to the BDC?

Read only

0 Likes
1,539

Hi Vikranth,

Yeah when i downloaded the file to the local machine throught CG3Y i am able to see the data but when i downloaded using save option i was not able to see the data. And also not able to see tha data in AL11. Even it is not seeming data is there..??.

Yeah Batch input session is getting created using the standard program where excatly i am facing the problem.

Regards,

Uday S.

Edited by: Uday Kumar on Nov 6, 2009 3:27 PM

Read only

0 Likes
1,539

Hi

AL11 lists the data file in an abap list, so it can show only the first 255 char, if your record is longer than 255 char, AL11 will trunc it.

If you use a std BI, u can see the file by trx SXDB

Max

Read only

0 Likes
1,539

Hi,

As Max pointed out AL11 will show only 255 characters. This limitation is just for viewing and not on the data itself. It does not mean that the data is cut or missing. Its available, just that it is not being shown. So the problem is not about any missing fields.

Vikranth

Read only

0 Likes
1,539

Hi Vikranth,

Thanks for you confirmation, i need one more clarification. I am passing the data of that file in AL11 to another program through submit option. So as per your saying (that AL11 holds the complete data) the program which we are calling will recieve the complete data is it is so..??


  SUBMIT rfbibl00
       WITH ds_name = p_output
       WITH callmode = callmode                          
       AND  RETURN.

here p_output contains the path of the file in the application server.

Read only

0 Likes
1,539

Hello Uday,

If you are able to view the whole content when you download the application server file with CG3Y, then the submit program rfbibl00 will receive the whole content of the file

Vikranth

Read only

0 Likes
1,539

HI Vikrant,

I got your point. But as i mentioned i am calling another program RFBIBL01. Here i am reading the data into a character field which is declared as below.


DATA:    BEGIN OF TFILE OCCURS 0,
           REC(3300)  TYPE C,
         END OF TFILE.

then i am reading that application server data into this file.


   READ DATASET DS_NAME INTO TFILE.

But when i debugged it seemed that TFILE is not fetching all the data that is there in AL11. TFILE is holding only some 252 characters rest of the characters were not seeming. The fields which are needed are after some 50 characters. So is there is any field restriction..?

Thanks & Regards,

Uday S.

Edited by: Uday Kumar on Nov 9, 2009 9:30 AM

Read only

0 Likes
1,539

Hello Uday,

There isnt any such field restirction unless its too huge. Better declare the TFILE field of the TYPE STRING instead of CHAR. Also while debugging, use the offsets and check if the value is populated like tfile-rec+250(100)

Vikranth

Read only

Former Member
0 Likes
1,539

Hi all

i wan't download xml on the application server, how i do that?

i had try to this


  "File löschen
  delete dataset if_filename.

  call transformation ('ID')
    source xml lf_xml_str
    result xml lf_con_xml.


  "File downloaden
  open dataset if_filename for output in binary mode.

  transfer lf_con_xml to if_filename.
*  loop at lt_xml_data assigning <ls_xml_data>.
*    transfer <ls_xml_data> to if_filename.
*  endloop.
  close dataset if_filename.

But the output isn't in a xml structur.

Can anybody help me?

Thx abap_begin.

Edited by: abap_begin on Feb 5, 2010 4:10 PM