‎2009 Mar 25 7:34 AM
I have this code.
DATA: lt_httpnvp TYPE TABLE OF TIHTTPNVP,
ls_httpnvp type TIHTTPNVP.
lt_httpnvp-name = 'WF_USERID'.
lt_httpnvp-value = 'yy029672'.
append ls_httpnvp-value to lt_httpnvp.it give me an erro
LT_HTTPNVP is a table without a header line and therefore has no
component called "NAME
LT_HTTPNVP is a table without a header line and therefore has no
component called "VALUE
Please help me in this.
BR,
‎2009 Mar 25 8:58 AM
Hi Ali,
Modify the code to :
TIHTTPNVP is a table type so you have to declare it as mention below.
DATA: lt_httpnvp TYPE TIHTTPNVP,
ls_httpnvp LIKE LINE OF lt_httpnvp.
ls_httpnvp-name = 'WF_USERID'.
ls_httpnvp-value = 'yy029672'.
append ls_httpnvp-value to lt_httpnvp.
Regard
Manoj Kumar
‎2009 Mar 25 8:11 AM
Modify the code to.
DATA: lt_httpnvp TYPE TABLE OF TIHTTPNVP,
ls_httpnvp type TIHTTPNVP.
ls_httpnvp-name = 'WF_USERID'.
ls_httpnvp-value = 'yy029672'.
append ls_httpnvp to lt_httpnvp.
Close this thread, you can continue in the same thread.. which you posted earlier.
Abhi
‎2009 Mar 25 8:30 AM
Hi Abhi,
I recode as u reply but nothing change, it gives me same error message.
‎2009 Mar 25 8:33 AM
ls_httpnvp-name = 'WF_USERID'.
ls_httpnvp-value = 'yy029672'.
it is ls not lt.
‎2009 Mar 25 8:41 AM
hi Abhimanyu Lagishetti ,
I did as u told noting change.
same error message.
BR,
Ali
‎2009 Mar 25 8:15 AM
hi,
Insert values in ls_httpnvp not lt_httpnvp as ls_httpnvp is acting as your work area and lt_httpnvp as internal table. So first put values in work area and then append them into internal table.
Thanx.
‎2009 Mar 25 8:22 AM
Hi ,
Use Your code in following way.
DATA: lt_httpnvp TYPE STANDARD TABLE OF TIHTTPNVP,
ls_httpnvp LIKE LINE OF LT_HTTPNVP.
ls_httpnvp-name = 'WF_USERID'.
ls_httpnvp-value = 'yy029672'.
append ls_httpnvp to lt_httpnvp.
I hope it works.
Regards,
Rohit
Edited by: Rohit M on Mar 25, 2009 2:04 PM
‎2009 Mar 25 8:42 AM
Hi Rohit,
I did as u suggested but not solved.
Same error message!!
BR,
Ali
‎2009 Mar 25 8:48 AM
Ali,
Use this code:
DATA: lt_httpnvp TYPE TABLE OF IHTTPNVP,
ls_httpnvp type line of TIHTTPNVP.
ls_httpnvp-name = 'WF_USERID'.
ls_httpnvp-value = 'yy029672'.
append ls_httpnvp to lt_httpnvp.
Regards
Arjun
‎2009 Mar 25 8:50 AM
hi
Try to declare first line like this
lt_httpnvp TYPE TABLE OF tihttpnvp,
‎2009 Mar 25 8:58 AM
Hi Ali,
Modify the code to :
TIHTTPNVP is a table type so you have to declare it as mention below.
DATA: lt_httpnvp TYPE TIHTTPNVP,
ls_httpnvp LIKE LINE OF lt_httpnvp.
ls_httpnvp-name = 'WF_USERID'.
ls_httpnvp-value = 'yy029672'.
append ls_httpnvp-value to lt_httpnvp.
Regard
Manoj Kumar
‎2009 Mar 25 9:02 AM
‎2009 Mar 25 9:56 AM
Hi,
Use 'standard table of' instead of using 'table of'
example;
DATA: lt_httpnvp TYPE STANDARD TABLE OF TIHTTPNVP,
ls_httpnvp type TIHTTPNVP.
Regards
Rama Krishna G