Regarding Updating Shipment Header Details in VT02N tcode
Hi all,
I have created a dialog program, inwhich iam populating shipment related details.
1st Screen: Selection screen fields:
billing Doc
Billing date
2nd Screen: Based on Billing Document number and date, i have to fetch Shipment details using Table Control like:
shipment number, Output only
Forwarding Agent, input/Output both -
editable
Shipment start Date, input/Output both -
editable
Container id. input/Output both -
editable
and i have created a button as "Update VT02N" on second screen.
When we choose Columns in table control and click on "Update VT02N", then it should trigger VT02N transaction and update the shipment details with following fields:
1. Forwarding agent
2. Container id
3. Shipment start Date.
So i waht to know any BAPI available to update Shipment Header details in VT02N tcode.
I have tried: BAPI_SHIPMENT_CHANGE -
NOT WORKING PROPERLY.
SD_SHIPMENT_SAVE -
NOT WORKING.
IF ANY BODY HAS SOME SOLUTION, PL SUGGEST WITH STEPS.
HELPFUL ANSWERS -
BETTER POINTS...
Regards,
Vamsy
Hi,
Have you called the BAPI_TRANSACTION_COMMIT after executing BAPI_SHIPMENT_CHANGE , even then if it is not working
you can check the FM SD_SHIPMENT_HEADER_CHANGE.
Thanks.
Similar Messages
-
How to copy Shipment Header Details to Shipment Legs Automatically (VT01N/VT02N)
Hello All,
I have a requirement to copy details from Shipment Header into Shipment Legs. My specific requirement is to copy Special Processing Indicator value in Header to my Shipment Leg information since the freight master uses Sp Proc indicator value to determine overall freight in Shipment Cost document. The problem is that when I click 'Planning' information is not copied to Legs. I do not want the user to input details TWICE.
Need help. Hope I have clarified my issue well. Thanks.Please answer too
-
Table name for the AMOUNT field in header details of costomer invoice
hi experts,
I need the table name for the field AMOUNT(wrbtr) which is in header details in fb70 tcode .I have checked many tables like bseg bsid, there its showing the amount but at item level.Hi,
the table behind structure INVFO is RBKP (Header level).
For item level you have table RSEG.
These tables refer to MM.
Once the MM documents are completed and you post the corresponding invoice RBKP data goes to BKPF and RSEG data goes to BSEG data.
The relattion between MM(RBKP/RSEG) and FI(BKPF/BSEG) documents is in field BKPF-AWKEY. This field usually contains (RBKP-BELNRRBKP-GJAHR that is MM documentMM year).
e.g. (BKPF-AWKEY = 51056024412009)
Best regards. -
Unable to update the header Pricing Condition of Customer Quotation
Hi Friends,
I am trying to change the Customer Quotaion using the 'BAPI_CUSTOMERQUOTATION_CHANGE'.
I am able to update the Header details and item details,but When it comes to pricing Conditions the Following errors I am getting
000000: Operations with Conditions of type F not allowed(ZZHD).
as it is a Header pricing Condition, I am passing Item number as 000000,even I tried to Comment and see,but the same issue.
Following is are the pricing Condition details that I am passing to BAPI.
CLEAR: wa_quote_condition_in,
wa_quote_condition_inx.
wa_quote_condition_in-itm_number = '000000'.
wa_quote_condition_inx-itm_number = '000000'.
wa_quote_condition_in-COND_COUNT = '01'.
wa_quote_condition_inx-COND_COUNT = '01'.
wa_quote_condition_in-cond_type = 'ZZHD'.
wa_quote_condition_inx-cond_type = 'ZZHD'.
wa_quote_condition_inx-updateflag = 'U'.
lv_zzhd = ( ls_nd_payment-transport_charg / 10 ).
wa_quote_condition_in-cond_value = lv_zzhd.
wa_quote_condition_inx-cond_value = 'X'.
APPEND: wa_quote_condition_in TO it_quote_condition_in,
wa_quote_condition_inx TO it_quote_condition_inx.
CLEAR: wa_quote_condition_in,
wa_quote_condition_inx.
Please help in tracing the above issue.
Regards,
Xavier.P
Edited by: Xavier on Sep 7, 2011 10:59 AM
Edited by: Xavier on Sep 7, 2011 11:00 AMHi prasad,
Please find the you will find 'condition type paramter in the structers bapicond, bapicondx.
data :it_quote_condition_in TYPE TABLE OF bapicond,
wa_quote_condition_in TYPE bapicond,
it_quote_condition_inx TYPE TABLE OF bapicondx,
wa_quote_condition_inx TYPE bapicondx.
CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
EXPORTING
salesdocument = ls_nd_payment-vbeln
quotation_header_in = wa_header
quotation_header_inx = wa_header_inx
simulation = 'X'
BEHAVE_WHEN_ERROR =
INT_NUMBER_ASSIGNMENT =
logic_switch = wa_logic_switch
NO_STATUS_BUF_INIT = ' '
TABLES
return = it_bapiret2
quotation_item_in = it_order_items
quotation_item_inx = it_order_items_inx
partners = it_partners
PARTNERCHANGES =
PARTNERADDRESSES =
conditions_in = it_quote_condition_in
conditions_inx = it_quote_condition_inx
QUOTATION_CFGS_REF =
QUOTATION_CFGS_INST =
QUOTATION_CFGS_PART_OF =
QUOTATION_CFGS_VALUE =
QUOTATION_CFGS_BLOB =
QUOTATION_CFGS_VK =
QUOTATION_CFGS_REFINST =
schedule_lines = it_order_schedule
schedule_linesx = it_order_schedule_inx
quotation_text = it_texts
QUOTATION_KEYS =
EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Regards,
Xavier.P -
Update shipment partner address E1ADRM4 & BADI_LE_SHIPMENT
Hi,
We want to update an existing shipment with updated detailed address information from an incoming Idoc from the forwarding agent. The idea is to replace the generic phone, email, name etc. with the specific clerk handling this shipment.
We are on release 6.02, so OSS note 982041 is in. Still, I can not get the data on the E1ADRM4 segment to do any updates.
As an alternative plan, I am looking into BADI_LE_SHIPMENT. By setting a breakpoint in FM SD_PARTNER_ADDRESSES_TO_DB, I have studied how a manual change in VT02N affects the address update. When the shipment is created, the adress number from the Vendor master is copied to the shipment. When I change the address, a new 90* number is created. I replicated the update flag (UPDKZ) in both VBPA and VBADR level, but to no avail. This is the current code. A new 90* address number is assigned, but it does not contain any address data ...
method if_ex_badi_le_shipment~at_save.
data : ld_e_mail(70) type c.
data : ld_name_co(40) type c.
data : ld_telephone1(30) type c.
data : ls_vbpa type vbpavb.
data : ls_vbadr type sadrvb.
clear : ld_e_mail, ld_name_co , ld_telephone1.
import from memory id. EXPORT done in edi program zxtrku09
import e_mail to ld_e_mail from memory id 'Z_E1ADRM4'.
import name_co to ld_name_co from memory id 'Z_E1ADRM4'.
import telephone1 to ld_telephone1 from memory id 'Z_E1ADRM4'.
ld_e_mail = 'Email'.
ld_name_co = 'Ole Elmose'.
ld_telephone1 = '555.555 1111'.
if not ( ld_e_mail is initial
and ld_name_co is initial
and ld_telephone1 is initial ).
cha_shipments_at_save-old_vbpa[] = im_shipments_at_save-old_vbpa[].
cha_shipments_at_save-new_vbpa[] = im_shipments_at_save-new_vbpa[].
cha_shipments_at_save-old_sadr[] = im_shipments_at_save-old_sadr[].
cha_shipments_at_save-new_sadr[] = im_shipments_at_save-new_sadr[].
Get shipment partner data
read table cha_shipments_at_save-new_vbpa
with key parvw = 'SP'
posnr = '000000'
into ls_vbpa.
Get shipment address data
read table cha_shipments_at_save-new_sadr
index 1
into ls_vbadr.
case ls_vbpa-adrda.
when 'D'.
First change from Vendor master adress
ls_vbadr-telf1 = ld_telephone1.
ls_vbadr-email_addr = ld_e_mail.
ls_vbadr-updkz = 'I'.
ls_vbadr-addr_renumbered = 'X'.
ls_vbadr-adrnr = 'SP $00000'.
append ls_vbadr to cha_shipments_at_save-new_sadr.
loop at cha_shipments_at_save-new_vbpa
into ls_vbpa.
ls_vbpa-updkz = 'U'.
ls_vbpa-adrnr = 'SP $00000'.
ls_vbpa-adrda = 'E'.
modify cha_shipments_at_save-new_vbpa
from ls_vbpa index sy-tabix.
endloop.
when 'E'.
Change an already changed (90*) address number
ls_vbadr-telf1 = ld_telephone1.
ls_vbadr-email_addr = ld_e_mail.
ls_vbadr-updkz = 'U'.
modify cha_shipments_at_save-new_sadr
from ls_vbadr index 1.
ls_vbpa-updkz = 'U'.
modify cha_shipments_at_save-new_vbpa
from ls_vbpa index 1.
when others.
endcase.
endif.
endmethod. "if_ex_badi_le_shipment~before_update
Anyone who have succeeded in updating shipment address either from Idoc or BADI ?Hi,
Yes and no.
I tried hard with several alternatives, but never got the partner update to work. The workaround was to write the updated information in a new dedicated shipment text field in ZXTRUKU11. Specific qualifiers are used if just part of the updated address is avaialble. The E-mail is checked as in the Vendor master.
Then this text is read in similar way in ZXTRKU02 for the EDI output.
CLEAR ls_idoc_data. CLEAR gs_emaildata.
gs_emaildata-type = 'INT'. " Address type is E-mail
LOOP AT all_idoc_data INTO ls_idoc_data
WHERE segnam = 'E1ADRM4'.
gd_tabix = sy-tabix.
MOVE ls_idoc_data-sdata TO str_e1adrm4.
CHECK str_e1adrm4-partner_q = 'SP'. " Forwarding agent
* Validate mail formatting
IF NOT str_e1adrm4-e_mail IS INITIAL.
MOVE str_e1adrm4-e_mail TO gs_emaildata-address.
* Use same validation as in partner maintenace
CALL FUNCTION 'SX_INTERNET_ADDRESS_TO_NORMAL'
EXPORTING
address_unstruct = gs_emaildata
EXCEPTIONS
error_address_type = 1
error_address = 2
error_group_address = 3
OTHERS = 4.
IF NOT sy-subrc IS INITIAL.
CLEAR str_e1adrm4-e_mail.
MOVE str_e1adrm4 TO ls_idoc_data-sdata.
MODIFY all_idoc_data FROM ls_idoc_data INDEX gd_tabix .
ENDIF.
ENDIF.
* Save updated address data in text object ( Ignore existing)
CLEAR ls_lines. CLEAR lt_lines.
* Add name to text ID with qualifier QN
IF NOT str_e1adrm4-name_text IS INITIAL.
CONCATENATE gc_qual_name " Qualifier for name: QN:
str_e1adrm4-name_text
INTO ls_lines-tdline
SEPARATED BY space.
ls_lines-tdformat = gc_star_format.
APPEND ls_lines TO lt_lines.
CLEAR ls_lines.
ENDIF.
* Add Telephone to text ID with qualifier QT
IF NOT str_e1adrm4-telephone1 IS INITIAL.
CONCATENATE gc_qual_phone " Qualifier for telephone: QT:
str_e1adrm4-telephone1
INTO ls_lines-tdline
SEPARATED BY space.
ls_lines-tdformat = gc_star_format.
APPEND ls_lines TO lt_lines.
CLEAR ls_lines.
ENDIF.
* Add E-mail to text ID with qualifier QM
IF NOT str_e1adrm4-e_mail IS INITIAL.
CONCATENATE gc_qual_email " Qualifier for mail: QM:
str_e1adrm4-e_mail INTO ls_lines-tdline
SEPARATED BY space.
ls_lines-tdformat = gc_star_format.
APPEND ls_lines TO lt_lines.
CLEAR ls_lines.
ENDIF.
CLEAR ls_header.
* Get shipment number
READ TABLE all_idoc_data INTO ls_idoc_data
WITH KEY segnam = 'E1EDT20'.
MOVE ls_idoc_data-sdata TO str_e1edt20.
ls_header-tdobject = 'VTTK'. " Shipment
ls_header-tdname = str_e1edt20-tknum. " Shipment #
ls_header-tdid = gc_address_tdid. " Z016 - Text for DSP address details
ls_header-tdspras = 'EN'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = ls_header
insert = 'X'
savemode_direct = 'X'
TABLES
lines = lt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
ENDLOOP.
- Sorry for the mess, but can't get any markup to work .... -
BAPI or Function module for updating shipment
Hi experts,
Do you know any bapi or FM to update shipment events (i actualy want to update events and dates under 'more dates' tab in vt02n) ? If so, please provide details about FM and what interface parameters to pass.
Thank you very much!
Kind regardsDid you try this functions,
RV_SHIPMENT_UPDATE
- Guru
Reward points for helpful answers -
Refreshing Header & Detail part in Screen
Dear Friends,
I've been facing the following two problems in the diaog program that I am developing:
In my screen I have header & detail portions. The header part contains fields e.g. contract no., transporter code, Date effective from, Date effective upto etc. that I pick up from transparent tables. To display the detail part I am using a table control that gets populated from internal table. Now when I save, the data gets saved successfully (both header & detail) and subsequently I am clearing the screen also but still I am not able to enter a new entry.There is no alternative other than to come out of the program & executing it once again.
Further if I change any entry in the header part (containing only fields) and save that updation doesn't get saved i.e.next time also it shows the previous values while in the detail part (table-control) the updation gets saved.
Waiting for your invaluable inputs..
Regards,
Alok.Hi Alok,
Seems in your program.. After change in details part... while saving the modules written in PBO are retriving old values.
Please put some flag in PBO which will control it's execution. Ie. at 1st time when u fetch the data. It will set as "X' then for every next time when u change data in details... It will not fetch data. It will accept your own data in header.
Darshan -
How to update ADRT-REMARK field (by which tcode)?
How to update ADRT-REMARK field (by which tcode)?
Hi,
ADRT-REMARK basically stores the notes which you enter against any communication number such as Telephone Number, Fax number etc for any business partner.
Say for example if you want to address details of a customer via XD01 or XD02; then in the communication tab enter the telephone number or fax number.
Click the button to add more details or more telephone numbers.
Over there you will find a field called as Comments.
This field is ADRT-REMARK.
You do not have a single transaction to maintain this field.
It depends upon the business partner for whom you want to add the details.
For a customer it is XD01 or XD02
For a vendor it is XK01 or XK02.
For a business partner it is BP.
For a user it is SU01D.
Regards,
Ankur Parab -
Setup table not getting filled-shipment header
hi
i am trying to fill the set up table for shipment header data for particular shipment number (TKNUM). as few shipment number missing, we are doing a full repair request.
tcode : vtbw
entered the shipment number. the setup table is still empty. when debugged, the values are not getting passed.
can anyone shed some light about this.
regards
neoThe 2LIS_08TRTK (shipment header), 2LIS_08TRTS (shipment stages) and 2LIS_08TRTLP (delivery items on shipment stages) DataSources only extract shipments where the shipment completion status is set.
Please see [OSS Note 573470 - Shipment data is not written into BW|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=573470] -
Hello All
For the PR Header details are updated in table STXH with text object EBANH & TEXT ID B01, but when in this table text object ESSR & TEXT ID TX01 is updated
for the PR header text is maintain & item text is maintain then then only one entry is coming in STXH table with text object EBANH & TEXT ID B01
But some PR ESSR text object & id TX01 is coming , how this entry is updated in table ( PR is not a Service PR)
Thanks in adavnce
Regards
RajeshIf header text is maintained by the user in PR , it will update the text.
Check the T code me53n give the PR number and check header text . and same u can check with the Object and ID combination . -
Issue in displaying header details in ALV report
Hi,
I have used slis_t_listheader and REUSE_ALV_COMMENTARY_WRITE to display the header details in ALV report.I want the details to be displayed as below.
Requester : ---------------------- Page: 1
Program: ----------------------- Date:---------
Title of Report
But when I use the structure slis_t_listheader to display the header details,all the fields are coming one below the other.
How can I get the fields as shown in the above format
Edited by: Abaper12345 on Jun 25, 2009 7:54 AMHi,
Go through following code... its showing the data exactly the way you want....
REPORT TEST3.
TYPE-POOLS:slis.
TABLES:MARA.
*Type Declaration
TYPES:BEGIN OF t_mara,
matnr TYPE mara-matnr,
ersda TYPE mara-ersda,
ernam TYPE mara-ernam,
END OF t_mara.
*Internal Table
data:it_mara type standard table of t_mara.
*Work Area
data:wa_mara type t_mara.
DATA:i_repid TYPE sy-repid .
i_repid = sy-repid.
*Declaration for field catalog
DATA : fcat TYPE slis_t_fieldcat_alv,
wa_fcat TYPE slis_fieldcat_alv.
*Declaration for Layout
data : WA_LAYOUT type SLIS_LAYOUT_ALV.
*Initializing ColumnWidth_Optimize For Layout
WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
START-OF-SELECTION
START-OF-SELECTION.
*Fetching data into internal tables
PERFORM get_data.
*Buil Fieldcatalog
PERFORM build_fcat.
*Display ALV Report
PERFORM alv_display.
*Build Fieldcat
FORM build_fcat .
wa_fcat-tabname = 'IT_MARA'.
wa_fcat-fieldname = 'MATNR'.
wa_fcat-inttype = 'C'.
wa_fcat-seltext_m = 'Material Number'.
wa_fcat-outputlen = 25.
wa_fcat-col_pos = 1.
APPEND wa_fcat TO fcat.
CLEAR wa_fcat.
wa_fcat-tabname = 'IT_MARA'.
wa_fcat-fieldname = 'ERSDA'.
wa_fcat-inttype = 'C'.
wa_fcat-seltext_m = 'Date'.
wa_fcat-outputlen = 25.
wa_fcat-col_pos = 1.
APPEND wa_fcat TO fcat.
CLEAR wa_fcat.
wa_fcat-tabname = 'IT_MARA'.
wa_fcat-fieldname = 'ERNAM'.
wa_fcat-inttype = 'C'.
wa_fcat-seltext_m = 'User'.
wa_fcat-outputlen = 25.
wa_fcat-col_pos = 1.
APPEND wa_fcat TO fcat.
CLEAR wa_fcat.
endform.
*& Form GET_DATA
text
--> p1 text
<-- p2 text
form GET_DATA .
select matnr ersda ernam from mara into table it_mara.
endform. " GET_DATA
*& Form ALV_DISPLAY
text
--> p1 text
<-- p2 text
form ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = i_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE'
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = fcat
TABLES
t_outtab = it_mara
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " ALV_DISPLAY
*& Form html_top_of_page " I_CALLBACK_HTML_TOP_OF_PAGE "
FORM html_top_of_page USING document TYPE REF TO cl_dd_document.
CALL METHOD document->add_text
EXPORTING
text = 'Program'
sap_color = document->list_group
sap_fontstyle = document->standard
sap_emphasis = document->strong.
CALL METHOD document->new_line
EXPORTING
repeat = 1
CALL METHOD document->add_text
EXPORTING
text = 'Requester'
sap_color = document->list_group
sap_fontstyle = document->standard
sap_emphasis = document->strong.
CALL METHOD document->new_line
EXPORTING
repeat = 1
CALL METHOD document->add_gap
EXPORTING
width = 125
CALL METHOD document->add_text
EXPORTING
text = 'This Is Test Data'
sap_color = document->list_group
sap_fontsize = document->LARGE
sap_fontstyle = document->standard
sap_emphasis = document->strong.
ENDFORM. "HTML_TOP_OF_PAGE
Thanks & Regards
Ashu SIngh -
ALV list Header details scattered
Hi All,
I have a ALV-LIST report output but the header details displayed are scattered in output. Can you suggest how to align all deatils properly aligned.Hi again,
1. first of all how are u writing / displaying
the alv header ?
2. using documentary write ?
then also, u can use one variable of
length 100 and use this concept.
3. If u are using top_of_page
event,
in this event, WE CAN use WRITE.
(i have used it, and it
works fantastic)
(not in case of alv grid)
4. My point is, what ever u are using,
use on variable of length 100.
WRITE value INTO variable.
using offset
and then proceed further.
regards,
amit m. -
How to get the Change Document Header details for a given date
Hi All,
Can anyone help me on this Change Document Header details(CDHDR).
Better way to pull the information of Change Document Header details(CDHDR). No Index is maintained for the tables.
So please suggest better Optimising techniques to get the Change Document Header details(CDHDR).
Using this Function module : CHANGEDOCUMENT_READ_HEADERS how to import the DATE_OF_CHANGE.
Thanks in advance
Regards
ChakriHI,
Go through the documenattion of the FM u can get the details.. and also where used list
Regards,
Nagaraj -
Hi,
Is there any report of PO header details which gives the below details?
1. PO
2. PO creator(Planner)
3. Buyer
4. Customer Data in header details ( In our organisation we put email ID which should be available in the report).
Regards,
RajaneeshHi Rajaneesh
The table EKKO contains the following fields (SE16 -> EKKO)
EBELN Purchasing document
AEDAT Created on
ERNAM Created by
LIFNR Vendor
IHREZ Your Reference
VERKF Salesperson
LLIEF Supplying Vendor
KUNNR Customer
etc..
I hope this can help -
Portal Header details to be added
Hi,
In the SAP GUI, in a report program, I'm creating a URL by calling the function module CALL_BROWSER. I'm calling the report program in Portals. In the report program, when I call the URL, the URL should appear with Portal header details.
When the call is made from portals, is it possible to get the Portal Header details in the BSP page which I'm calling from the Report program.
Thanks & Regards
G.RajaHi!
With EP60 you should use the Portal URL instead of the backend url.
The Portal URL points to the Portal iView with a URL like this: http://<portalserver>:<port>/irj/portal/?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fyour.folder%2Fyour.sub.folder%2Fcom.your.iview
Hope this helps.
Regards,
Volker
Maybe you are looking for
-
Web page not showing up with template
I have created a web page that looks great when I preview it, however now that I've put it on the web site, it shows up without the template and images. I have tried for 3 days to fix this but I'm at a loss. Can anyone help? p.s. This is the first ti
-
Can I combine two bex querys by comining query function
Hi expert, Can I combine two bex querys by comining query function? Many Thanks,
-
How canI check the architecture of the installed Oracle software?
Is there a way to check whether I have 32bit or 64bit version of Oracle software from within Oracle? I want to script in a check to see if the current Oracle Home where this database is running is either 32-bit or 64-bit. It is not good enough to che
-
Building a case structure with four boolean (true/false) inputs.
I currently have two boolean inputs that I would like to use to select cases in a case structure. I would like to have four cases, each one dependent on the true/false condtions of the two booleans. If boolean 1 =true, then case 1 should be used, if
-
While initializing the database in adobe livecycle es
Hi, Would you suggest me that while initializing the database I'm having the following error: Failed on retriewing task from server. ALC-TTN-109-000:Could not establish a valid connect to server:[Unexpected end to file from server]. To resolve this p