|
|
This website is not affiliated with, sponsored by, or approved by SAP AG.
Development (ABAP Development WorkBench, ABAP/4 programming)
Moderators: thx4allthefish, Snowy, Gothmog, YuriT
by Baz » Mon Mar 22, 2004 11:25 am
I am a functional S&D/AR Developer, helping out with some ABAP work. I have written a basic report to search Vendor Line Items by amount. I am aware that FBL1N already searches by amount, but this report is 10 times quicker.... The user wishes to drilldown into FBL1N. I have used the following code, but I wish to select all All items, as the default is Open items. - Code: Select all
*Hotspot for drill down
FORMAT HOTSPOT ON. WRITE:/1 idat-lifnr, 15 idat-bldat, 30 idat-xblnr, 55 idat-wrbtr, 75 idat-blart, 80 idat-belnr, 95 idat-augdt.
HIDE: idat-bukrs, idat-gjahr, idat-lifnr. FORMAT HOTSPOT OFF.
ENDLOOP.
*Call FBL1N, enter vendor number, company code and All Items *At Line-Selection------------------------------------------------------ AT LINE-SELECTION.
SET PARAMETER ID 'LIF' FIELD idat-lifnr. SET PARAMETER ID 'BUK' FIELD idat-bukrs. CALL TRANSACTION 'FBL1N' AND SKIP FIRST SCREEN.
The field I wish to select has the following data/properties:
Program RFITEMAP Structure: ITEMSET Field Name: XAISEL Data Element: XAISEL_IT DE Supplement: 0 Screen Field: X_AISEL
can anyone help?? Or point me in the right direction??
Baz AsPiRiNg tUlY iDiOt  http://www.catb.org/~esr/faqs/smart-questions.html  check out my Podcasts http://dj-baz.podomatic.com
-
Baz
-
- Posts: 4702
- Joined: Fri Nov 08, 2002 5:54 am
- Location: dirt box Derby
-
by kumar » Mon Mar 22, 2004 11:46 am
Try using
SUBMIT RFITEMAP WITH .... <Your Param>
KRK
-
kumar
-
- Posts: 2012
- Joined: Tue Oct 22, 2002 12:51 pm
- Location: Basel, Switzerland
-
by Baz » Tue Mar 23, 2004 3:15 am
Thank you Kumar. Without meaning to sound stupid.... I have added the amended coding as follows... - Code: Select all
FORMAT HOTSPOT ON. WRITE:/1 idat-lifnr, 15 idat-bldat, 30 idat-xblnr, 55 idat-wrbtr, 75 idat-blart, 80 idat-belnr, 95 idat-augdt.
HIDE: idat-bukrs, idat-lifnr. FORMAT HOTSPOT OFF.
ENDLOOP.
*Call FBL1N, enter vendor number, company code and All Items *At Line-Selection------------------------------------------------------ AT LINE-SELECTION.
SET PARAMETER ID 'LIF' FIELD idat-lifnr. SET PARAMETER ID 'BUK' FIELD idat-bukrs. SUBMIT rfitemap WITH x_aisel = 'X'.
The report works to a point... now when I drill down, all is well until I press F3 and it takes me back to the SAP Easy Access menu, and not back to the details in my report. Any thoughts?
Baz AsPiRiNg tUlY iDiOt  http://www.catb.org/~esr/faqs/smart-questions.html  check out my Podcasts http://dj-baz.podomatic.com
-
Baz
-
- Posts: 4702
- Joined: Fri Nov 08, 2002 5:54 am
- Location: dirt box Derby
-
by wiraone » Tue Mar 23, 2004 3:39 am
Try to add AND RETURN to the SUBMIT line.
-
wiraone
-
- Posts: 1419
- Joined: Mon Oct 28, 2002 8:54 am
- Location: Diawang-awangan
by Guest » Tue Mar 23, 2004 3:49 am
Many thanks Wiraone and Kumar.
All working peechy now 
-
Guest
-
by Baz » Thu Mar 25, 2004 5:36 am
Anonymous wrote:Many thanks Wiraone and Kumar. All working peechy now 
My coding for this is as follows: - Code: Select all
FORMAT HOTSPOT ON. WRITE:/1 idat-lifnr, 15 idat-bldat, 30 idat-xblnr, 55 idat-wrbtr, 75 idat-blart, 80 idat-belnr, 95 idat-augdt.
HIDE: idat-bukrs, idat-lifnr. FORMAT HOTSPOT OFF.
ENDLOOP.
*Call FBL1N, enter vendor number, company code and All Items and return *At Line-Selection------------------------------------------------------ AT LINE-SELECTION.
SET PARAMETER ID 'LIF' FIELD idat-lifnr. SET PARAMETER ID 'BUK' FIELD idat-bukrs. SUBMIT rfitemap WITH x_aisel = 'X' AND RETURN.
many thanks for your prompt responses.
Baz AsPiRiNg tUlY iDiOt  http://www.catb.org/~esr/faqs/smart-questions.html  check out my Podcasts http://dj-baz.podomatic.com
-
Baz
-
- Posts: 4702
- Joined: Fri Nov 08, 2002 5:54 am
- Location: dirt box Derby
-
Return to ABAP
Who is online
Users browsing this forum: No registered users and 9 guests
|
|