This website is not affiliated with, sponsored by, or approved by SAP AG.

user exit to get delivery order header text in 'VL01N'.

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

user exit to get delivery order header text in 'VL01N'.

Postby tuckmy » Fri Feb 27, 2004 1:07 am

Hi all,

Is there anybody know how to get delivery order header text in 'VL01N'?

TQ.
tuckmy
 
Posts: 35
Joined: Tue Mar 25, 2003 3:19 am

Header Text in VL01N

Postby sudheer » Fri Feb 27, 2004 2:04 am

Hi,
To read header text in any Transaction no need to go for user exit.
Go to VL02N and goto header details and select menu path GOTO-->HEADER-->TEXTS.You will get Texts details screen.
Just double click on the screen.It takes u to Text editor.
Then select menu path GOTO--> HEADER.
You will receive
1) TEXT NAME
2)LANGUAGE
3)TEXT ID
4)TEXT OBJECT
details.
Then in abap program by using READ_TEXT FM by passing above parameters u can read out text.
Hope this will work out.
Bye
Sudheer K.T.
Chennai.
sudheer
 

Postby tuckmy » Fri Feb 27, 2004 3:18 am

Hi,

I get what you mean. but i want to get the header text to do validation what the user key in after user click the save button in 'VL01N'.

TQ.
tuckmy
 
Posts: 35
Joined: Tue Mar 25, 2003 3:19 am

Delivery header text

Postby Nigelt » Wed Mar 03, 2004 10:01 pm

Hi. We have the same problem - in 4.5B (VL01) we used field exits to validate user exits but of course they don't work within the SD text editor in VL01N. There is a user exit at the point just prior to saving the delivery which you could use, but it's only just better than useless.
You could use the 'old' transactions VL01 and VL02 - SAP assures us they will continue to be supported - and then use field exits.
As our text validations were not time-critical, we have decided to use the inelegant option of running a validation report after the event, possibly each evening.
Nigelt
 

Postby JuergenL » Wed Jun 09, 2004 8:51 am

Well, create a report quickly to test the functionality. This should work but The programms stop with an error message if not text was found to the object? How to solve this?

Code: Select all
REPORT zwg_read_text .

DATA: itab LIKE TABLE OF tline,
      itab2 LIKE TABLE OF tline,
      wa_itab TYPE tline.
DATA: BEGIN OF it_vbak OCCURS 0,
        vbeln LIKE stxh-tdname,
      END OF it_vbak.

SELECT * FROM vbak INTO CORRESPONDING FIELDS
  OF table it_vbak WHERE auart = 'ZMA'.


LOOP AT it_vbak.

  CALL FUNCTION 'READ_TEXT'
       EXPORTING
            client         = sy-mandt
            id             = 'Z012'
            language       = sy-langu
            name           = it_vbak-vbeln
            object         = 'VBBK'
            archive_handle = 0
       TABLES
            lines          = itab.
  if sy-subrc <> 0.
    message s000(zmstamm) with 'Fehler!'.
  endif.
  LOOP AT itab INTO wa_itab.
    WRITE:/ wa_itab.
    SKIP 1.
  ENDLOOP.

ENDLOOP.
JuergenL
 
Posts: 875
Joined: Wed Nov 13, 2002 8:08 am
Location: Cologne, Germany

Re:

Postby sokov » Fri Jul 17, 2009 10:45 am

JuergenL wrote:The programms stop with an error message if not text was found to the object? How to solve this?

I got the same problem: error messages in READ_TEXT are adisplayed directly, insted of throwing an exception.

Any ideas?
sokov
 
Posts: 4
Joined: Wed Mar 21, 2007 4:16 am
Location: Moscow

Re: user exit to get delivery order header text in 'VL01N'.

Postby BradB » Fri Jul 17, 2009 11:04 am

Well, if you're using the same code that Juergen was using 5 years ago, then the issue is obvious; otherwise, you'll need to post your code. He did not handle the exceptions in the function call. If defined exceptions aren't handled properly, SAP has no choice but to error-out or dump.
Ironman Triathlete and SAP Dev/Config Expert
(which is harder?)
BradB
 
Posts: 685
Joined: Wed Mar 22, 2006 10:27 am
Location: Standing right behind you


Return to ABAP

Who is online

Users browsing this forum: Google [Bot] and 5 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.