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

Uploading data for Tcode IW21

Former Member
0 Likes
1,013

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

6 REPLIES 6
Read only

former_member156446
Active Contributor
0 Likes
905

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.

Read only

0 Likes
905

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

Read only

0 Likes
905

Check this [link>>>|http://abaplovers.blogspot.com/2008/02/function-modules-create-text-and-read.html]

Read only

0 Likes
905

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

Read only

0 Likes
905

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.

Read only

0 Likes
905

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