Search found 365 matches

by Grogan
Wed Jan 09, 2013 3:31 pm
Forum: ABAP
Topic: VBKD-KDGRP and XVBAP
Replies: 9
Views: 5809

Re: VBKD-KDGRP and XVBAP

A couple of things to look at: 1. Try making the equivalent change to VBAP as well as XVBAP. 2. When you change XVBAP, has the update indicator been set on the record ? For a new item XVBAP-UPDKZ should already be 'I' (insert); for a changed item XVBAP should be copied to YVBAP and XVBAP-UPDKZ set t...
by Grogan
Sun Dec 16, 2012 3:58 pm
Forum: ABAP
Topic: Button in toolbar does not show
Replies: 4
Views: 2321

Re: Button in toolbar does not show

Assuming you have activated the changed GUI Status successfully, try running IW72 setting a breakpoint at statement SET PF-STATUS. When it hits the breakpoint, is your custom button being excluded ?
by Grogan
Mon Dec 10, 2012 3:22 pm
Forum: ABAP
Topic: MV45AFZZ best practice
Replies: 9
Views: 4657

Re: MV45AFZZ best practice

In our case the includes containing the forms are included via an Enhancement in the main program, like this: * SAPMV45A """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Include SAPMV45A, End S *$*$-Start: (1)------------------------------------...
by Grogan
Sun Dec 09, 2012 3:29 pm
Forum: ABAP
Topic: MV45AFZZ best practice
Replies: 9
Views: 4657

Re: MV45AFZZ best practice

I'd rather advise to use performs, instead of or inside these includes. Too often have I seen exits totally bypassed by a wrongly placed CHECK instruction in another include... Agree 100%. You want each discrete piece of business logic in its own form / method, otherwise it quickly becomes unmanage...
by Grogan
Thu Nov 29, 2012 3:27 pm
Forum: ABAP
Topic: Trigger Batch Derivation
Replies: 1
Views: 948

Re: Trigger Batch Derivation

Do you mean trigger a background job ? Background job events are defined in tran SM64 and raised using CL_BATCH_EVENT=>RAISE.

If thats not it then can you clarify what you are trying to achieve.
by Grogan
Thu Nov 29, 2012 3:19 pm
Forum: ABAP
Topic: Extracting data from VL10A in an internal table
Replies: 1
Views: 1135

Re: Extracting data from VL10A in an internal table

You could try CL_SALV_BS_RUNTIME_INFO as per this blog:
http://scn.sap.com/community/abap/blog/ ... lv-reports
by Grogan
Wed Nov 21, 2012 3:32 pm
Forum: ABAP
Topic: Partial Delivery in RV_DELIVERY_CREATE
Replies: 1
Views: 2175

Re: Partial Delivery in RV_DELIVERY_CREATE

Any reason why you are not using a BAPI function directly, such as BAPI_OUTB_DELIVERY_CREATE_SLS ?

Note that BAPI_OUTB_DELIVERY_CREATE_SLS calls FM SHP_DELIVERY_CREATE_FROM_SLS calls form DCS_DELIVERIES_CREATE calls FM RV_DELIVERY_CREATE, so tracing this through might give you a clue.
by Grogan
Wed Nov 14, 2012 3:30 pm
Forum: ABAP
Topic: Table Maintenance - Look up Cust Name
Replies: 6
Views: 2059

Re: Table Maintenance - Look up Cust Name

Creating the foreign key is a separate step that must be done in your Z* table. Choose your KUNNR field (whatever it is called) and press the "Foreign Keys" button. This will allow you to define KNA1 / KUNNR as the check table / field for it. Once this has been done you can then create a view and in...
by Grogan
Sun Nov 11, 2012 3:59 pm
Forum: ABAP
Topic: Table Maintenance - Look up Cust Name
Replies: 6
Views: 2059

Re: Table Maintenance - Look up Cust Name

Try creating your Z* table with KUNNR, and use the "Foreign Keys" button to define KNA1 as the check table for KUNNR. Create a separate Maintenance View which includes your Z* table fields and table KNA1 field NAME1. Generate Table Maintenance on this Maintenance View, and it should now work. To pre...
by Grogan
Thu Oct 11, 2012 7:12 pm
Forum: ABAP
Topic: Hoe to read long text - Primary Cost Planing ( FI module )
Replies: 2
Views: 1035

Re: Hoe to read long text - Primary Cost Planing ( FI module )

I don't know what transaction you are referring to, but in general READ_TEXT is the right FM for long texts. Long text headers are stored in table STXH so you can use SE16N on this to verify the long text exists and its keys. The obvious things to look out for - does NAME have the right number of le...
by Grogan
Sun Jun 17, 2012 2:45 am
Forum: ABAP
Topic: View Standard Message Long Text in SAPScript Format
Replies: 2
Views: 1180

View Standard Message Long Text in SAPScript Format

Hi all, does anyone know how to view the long text of a standard SE91 message in SAPScript format (under ECC6) ? Normally if I display the long text it shows me the rendered version. Opening the long text in change mode gives it in SAPScript format, but I can't do that for standard messages without ...
by Grogan
Sun Jun 17, 2012 2:32 am
Forum: ABAP
Topic: Radio Button
Replies: 3
Views: 1146

Re: Radio Button

You need to use the layout options of the SELECTION-SCREEN statement - check out the online help. Example: selection-screen begin of line. parameters : r_read radiobutton group rbg1. selection-screen comment (30) text-srd for field r_read. selection-screen position pos_high. parameters : r_write rad...
by Grogan
Tue May 22, 2012 10:05 pm
Forum: ABAP
Topic: Retrieve reference to variable bound to a formal parameter
Replies: 3
Views: 1198

Re: Retrieve reference to variable bound to a formal parameter

I assume it references to the Interface when EXEMPLAR is not bound ? This would be because the variable is of TYPE REF TO the interface. If EXEMPLAR is bound then CL_ABAP_CLASSDESCR=>DESCRIBE_BY_OBJECT_REF should return the actual type of the underlying class. After all CL_ABAP_CLASSDESCR only deals...
by Grogan
Mon May 21, 2012 4:32 pm
Forum: ABAP
Topic: need help with INCLUDE STRUCTRE
Replies: 1
Views: 760

Re: need help with INCLUDE STRUCTRE

Yes. Note that INCLUDE is a stand alone statement, not part of the TYPES statement. TYPES: BEGIN OF GTY_MATERIAL_SELECTED. INCLUDE STRUCTURE MKPF. Types: RAW_MATERIAL TYPE MSEG-MATNR, MOVEMENT TYPE MSEG-BWART, MATERIAL_DOCUMENT TYPE MSEG-MBLNR, END OF GTY_MATERIAL_SELECTED. Your other option is to i...