‎2009 Jun 24 4:35 AM
Hi,
I want to upload data for the Tcode IW21,I tried to make BDC but i was giving only 1 problem that it is not able to capture the screen for Long Text as it is used as script handling.i am able to find a BAPI but i dont know how to use it,i tried to do work through LSMW but there is no information. Pleas provide me guidelines how to solve this problem.. I am providing the link to the code which i had developed(BDC) for the tcode IW21 .
Here's the code:-
http://docs.google.com/View?id=dfxswwff_3gtn9qsdp
Edited by: ricx .s on Jun 24, 2009 6:24 AM
‎2009 Jun 24 5:34 AM
to retrieve the text u need to find the text id object and use read_text fm...to post data you need to use save_text and commit_text. Text need to handled separately.
‎2009 Jun 24 5:43 AM
HI,
Is there any exmaple for it so that it can be performed. Please provide me guidelines to sove this problem.
I had cheked in tcode that there is information given in the technical settings that the there are two types of fields present.
Screen Data
PRG.Name-> SAPLIQS0
Screen No - 7710
Field-> TLINE-TDLINE
Field description for Batch Input
PRG.Name-> SAPLIQS0
Screen No-> 7200
Field -> LTXTTAB2-TLINE
‎2009 Jun 24 6:14 AM
Check this [link>>>|http://abaplovers.blogspot.com/2008/02/function-modules-create-text-and-read.html]
‎2009 Jun 24 7:46 AM
hi,
Thanks for your help. Can i use BAPI to upload data for IW21 and how to trace the fields of a BAPI to upload the data .
Here's the code which i searched on net bu there is no information regarding the fields tobe traced and should i include it in my code which i had provided above ?
*--------------------------------------------------------------------*
data: i_bapi2080_nothdri type standard table of bapi2080_nothdri with header line.
data: i_bapiret2 type standard table of bapiret2 with header line.
data: i_bapi2080_nothdre type standard table of bapi2080_nothdre with header line.
data: i_bapi2080_notfulltxti type standard table of bapi2080_notfulltxti with header line.
* create header data
i_bapi2080_nothdri-refobjectkey = 'PJAREF'.
i_bapi2080_nothdri-equipment = '10000030'.
i_bapi2080_nothdri-reportedby = 'PJAREP'.
i_bapi2080_nothdri-short_text = 'PJA Short Test from BAPI'.
i_bapi2080_nothdri-priority = '1'.
* create header long text
i_bapi2080_notfulltxti-objtype = 'QMEL'.
i_bapi2080_notfulltxti-FORMAT_COL = 'U1'.
i_bapi2080_notfulltxti-text_line = 'Long text 1'.
append i_bapi2080_notfulltxti.
i_bapi2080_notfulltxti-objtype = 'QMEL'.
i_bapi2080_notfulltxti-FORMAT_COL = 'U1'.
i_bapi2080_notfulltxti-text_line = 'Long text 2'.
append i_bapi2080_notfulltxti.
call function 'BAPI_ALM_NOTIF_CREATE'
exporting
* EXTERNAL_NUMBER =
notif_type = 'M1'
notifheader = i_bapi2080_nothdri
* TASK_DETERMINATION = ' '
* SENDER =
* ORDERID =
importing
notifheader_export = i_bapi2080_nothdre
tables
* NOTITEM =
* NOTIFCAUS =
* NOTIFACTV =
* NOTIFTASK =
* NOTIFPARTNR =
longtexts = i_bapi2080_notfulltxti
* KEY_RELATIONSHIPS =
return = i_bapiret2.
call function 'BAPI_ALM_NOTIF_SAVE'
exporting
number = i_bapi2080_nothdre-notif_no
* IMPORTING
* NOTIFHEADER =
* TABLES
* RETURN =
.
call function 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
.
Please provide me guidelines for it.Is there any way to upload the data for this Tcode IW21 through LSMW?
Edited by: ricx .s on Jun 24, 2009 10:20 AM
‎2009 Jun 24 5:20 PM
I never worked on this BAPI, but all u need to see is to fill all the mandatory and primary keys that you see in the structure of BAPI.
for BAPI_ALM_NOTIF_CREATE
NOTIF_TYPE
NOTIFHEADER are mandatory field u have to pass for sure.
‎2009 Jun 29 6:24 AM
HI,
Can i upload the data for the TCODE IW21 through ABAP Program as i had i found a BAPI which is used for uploading the data .
The BAPI name is BAPIVIQMEL.
Please provide me guidelines to solve this problem .
Edited by: ricx .s on Jun 29, 2009 8:04 AM
Edited by: ricx .s on Jun 29, 2009 1:45 PM