Using AME for Line Item Invoice Approvals
I've created a Line Item AME rule for invoices, but when I initiate the invoice approval from the workbench, the system ignores the rule. I have the 'Use Approval Workflow' Payables option checked, and the rule itself is very basic:
Condition: SUPPLIER_INVOICE_LINE_QUANTITY_INVOICED is greater than or equal to 50 and less than or equal to 100
Attribute: select fnd_number.number_to_canonical(quantity_invoiced) from ap_invoice_lines_all where invoice_id = :transactionId and wfapproval_status = 'INITIATED' order by line_number
Condition Type: Ordinary
Item Class: Line Item
Action Type:
approval-group chain of authority
Action:
Require approval from Test Group 1
I've run test cases with AME and the test catches the rule and displays the approval result I'm looking for, but when I run a Real Transaction Test, the rule is ignored and the output of the test (the Focus Transaction Data section) doesn't display any Line Item attributes.
Can anyone help explain why the line item attributes are not populating in the test and why my rule is ignored?
Edited by: C.h.r.i.s P. on Jun 19, 2012 11:40 AM
Hi,
Please review the following documents and see if it helps.
Note: 333270.1 - APINV: Line Item Class Rules Error in AP with ORA-20001: The input ame_util.approverRecord2 does not belong to the header item class, as ame_api. No Errors In AME Test Tab
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=333270.1
Note: 393099.1 - Ora-20001 Error When Testing In Ame Test Tab
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=393099.1
Regards,
Hussein
Similar Messages
-
Adding a characteristics to AR Drill down report for line items
I have raised an OSS note on this, but they deem this to be consulting.
I have an AR drill down report for line items
It calls the structure RFRRD20.
I need to add a value into the characteristics so I can use it in the drill down report.
I have appended the structure, added a value in TKAF for the field, and it still does not show.
Has anybody done something similar?
I am sure this is easy, but only when you know how, so if you know how to do it please can you let me know.
thanks
MarkHi Mark
I am also in the same situation where i need to add two characteristics (invoice date, due date) to the AR drill down reports. I added them to the structure and TKAF table as you did, but still could not get them to the drill down reports (FDI5 or FI1).
From your posts, i see that SAP's response was that it is not possible to add characteristics to AR drilldown reports? Did they mention any reasons or OSS notes? How did you handle your requirement, were you able to work around?
Your suggestions would be highly appreciated.
Thanks
Vamsi -
+ 999 line items invoice posting in MM
Hi,
How can you manage +999 line items invoices in MM?
Now those invoices are treated in FI, using a program developed that allows the system to split the document in smaller ones, but in the future we want to post them using MM.
There is someone who find a solution to that? Which are best practice in this topic?
thks!
Edited by: Csaba Szommer on Jan 14, 2012 6:19 PMThe invoice was successfully posted. I have done 2 thing:
1) I got implemented User Exit: EXIT_SAPLMRMH_011 in Enhancement: MRMH0002
2) Maintained Transaction VS5 and G/L account no. for relevent chart of accounts in R/3 table T030K. -
Changing the default view for Line Items in an Auction.
Hello All,
We have a version 5 client who is asking for us to change the default view for line items in an auction.
Currently, if you have an auction setup, and you go to the Line Items tab, the default view is the "Basic View". The client would like to change the Default from "basic view" to "price view".
Is there a way to change this default in the system? Can this be configured using query groups? Any information would be helpful.Hi wood cloud,
This is not possible, bcz there is no VLV for that drop down and we cant set it to the price view.
Thanks,
Ankur Goyal -
Problem in bdc for table control for line items
Hi experts,
I am runnig a bdc for ME52.
i am just entering PR number, in the second screen i have got all the line items. I need to select these line item 10 and double click or hit enter, it takes me to screen 3, there im just checking a checkbox and saving.
Again i need to select the line item 20 and double click or hit enter. again the same process.
Again repeat for all the line items.
But my problem is it is updating everytime for only line item 10. for line item 20 and others it say "no chnge in the data".
I am pasting my code here. please check and revert me back .plz.
DATA: w_output LIKE LINE OF i_output.
REFRESH I_ITAB[].
SELECT * FROM EBAN
INTO TABLE i_itab
WHERE banfn in s_banfn AND
bsart in s_bsart AND
bstyp in s_bstyp AND
matnr in s_matnr AND
werks in s_werks AND
lfdat in s_lfdat AND
pstyp in s_pstyp AND
knttp in s_knttp AND
estkz in s_estkz AND
loekz eq ' '.
IF sy-subrc = 0.
CLEAR: w_itab,
i_poitab[].
SORT i_itab by banfn.
LOOP AT i_itab INTO w_itab where menge GT eban-bsmng.
IF p_close = 'X' AND p_rep = 'X'.
IF w_itab-ebakz = 'X'.
w_itab-ebakz = ' '.
APPEND w_itab to i_poitab.
ENDIF.
ELSEIF p_open = 'X' AND p_rep = 'X'.
IF w_itab-ebakz = ' '.
w_itab-ebakz = 'X'.
APPEND w_itab to i_poitab.
ENDIF.
ELSEIF p_close = 'X' AND p_repw = 'X'.
IF w_itab-ebakz = ' '.
APPEND w_itab to i_poitab.
ENDIF.
ELSEIF p_open = 'X' AND p_repw = 'X'.
IF w_itab-ebakz = 'X'.
APPEND w_itab to i_poitab.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT i_poitab into w_output.
APPEND w_output to i_output.
PERFORM CALL_BDC.
endloop.
IF p_rep = 'X'.
PERFORM CALL_BDC.
ENDIF.
ENDFORM. " GET_DATA
*& Form CALL_BDC
text
--> p1 text
<-- p2 text
FORM CALL_BDC.
DATA: seltab(5) TYPE N,
seltab1(2) TYPE N,
tempvar(30) TYPE N,
cnt TYPE N.
LOOP AT i_output.
clear: seltab,
seltab1.
seltab = i_output-bnfpo.
seltab1 = seltab+2(2).
perform bdc_dynpro using 'SAPMM06B' '0105'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-BANFN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EBAN-BANFN'
i_output-banfn.
perform bdc_dynpro using 'SAPMM06B' '0106'.
clear tempvar.
*cnt = 1.
concatenate 'EBAN-BNFPO(' seltab1 ')' into tempvar.
perform bdc_field using 'BDC_CURSOR'
'EBAN-BNFPO(seltab1)'.
tempvar.
perform bdc_field using 'BDC_OKCODE'
'=DETA'.
perform bdc_field using 'RM06B-BNFPO'
i_output-bnfpo.
perform bdc_field using 'RM06B-TCSELFLAG(seltab1)'
'X'.
perform bdc_dynpro using 'SAPMM06B' '0102'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-EBAKZ'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'EBAN-EBAKZ'
i_output-ebakz.
CALL TRANSACTION 'ME52' USING bdc_data MODE 'A'
MESSAGES INTO i_bdcmsg.
COMMIT WORK AND WAIT.
ENDLOOP.
ENDFORM. " CALL_BDC
*& Form bdc_dynpro
text
-->P_0686 text
-->P_0687 text
FORM bdc_dynpro USING program dynpro.
CLEAR bdc_data.
bdc_data-program = program.
bdc_data-dynpro = dynpro.
bdc_data-dynbegin = 'X'.
APPEND bdc_data.
CLEAR bdc_data.
ENDFORM.
thanks,
NLooks like table control logic is wrong -- do compare with below program...
only table contril area
REPORT ZPadmam
NO STANDARD PAGE HEADING LINE-SIZE 255.
DATA : BEGIN OF itab OCCURS 0,
i1 TYPE i,
lifnr LIKE rf02k-lifnr,
bukrs LIKE rf02k-bukrs,
ekorg LIKE rf02k-ekorg,
ktokk LIKE rf02k-ktokk,
anred LIKE lfa1-anred,
name1 LIKE lfa1-name1,
sortl LIKE lfa1-sortl,
land1 LIKE lfa1-land1,
akont LIKE lfb1-akont,
fdgrv LIKE lfb1-fdgrv,
waers LIKE lfm1-waers,
END OF itab.
DATA : BEGIN OF jtab OCCURS 0,
j1 TYPE i,
banks LIKE lfbk-banks,
bankl LIKE lfbk-bankl,
bankn LIKE lfbk-bankn,
END OF jtab.
DATA : cnt(4) TYPE n.
DATA : fdt(20) TYPE c.
DATA : c TYPE i.
INCLUDE bdcrecx1.
START-OF-SELECTION.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\first1.txt'
filetype = 'DAT'
TABLES
data_tab = itab.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\second.txt'
filetype = 'DAT'
TABLES
data_tab = jtab.
LOOP AT itab.
PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF02K-LIFNR'
itab-lifnr.
PERFORM bdc_field USING 'RF02K-BUKRS'
itab-bukrs.
PERFORM bdc_field USING 'RF02K-EKORG'
itab-ekorg.
PERFORM bdc_field USING 'RF02K-KTOKK'
itab-ktokk.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-LAND1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFA1-ANRED'
itab-anred.
PERFORM bdc_field USING 'LFA1-NAME1'
itab-name1.
PERFORM bdc_field USING 'LFA1-SORTL'
itab-sortl.
PERFORM bdc_field USING 'LFA1-LAND1'
itab-land1.
PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
cnt = 0.
LOOP AT jtab WHERE j1 = itab-i1.
cnt = cnt + 1.
CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-banks.
CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankl.
CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankn.
IF cnt = 5.
cnt = 0.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=P+'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
ENDIF.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-FDGRV'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFB1-AKONT'
itab-akont.
PERFORM bdc_field USING 'LFB1-FDGRV'
itab-fdgrv.
PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-ZTERM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB5-MAHNA'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFM1-WAERS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFM1-WAERS'
itab-waers.
PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
PERFORM bdc_transaction USING 'XK01'.
ENDLOOP.
PERFORM close_group.
Thanks
Seshu -
How to print vertical lines for line items?
hi experts,
can any one tell me how to print vertical lines for line items in ascript?
ive tried using sy-vline but its printing jus one line each for each item .i want it in columns ?if there are any control commands plz let me know how to print?
thanks ®ards
narendarhi narendar,
Welcome to SDN.
u can go for box command.
Use the box command with zero width for vertical lines.
Position the line by x position and y postion.
syntax :
BOX <xpos> <ypos>
<width>
<height>
<thickness in twips> twips.
Regards,
Arun.
Reward points if useful. -
New DataSources for Line Items from FI-GL, FI-AP, FI-AR
Dear Experts,
Kindly sugest the SAP Note's and SAP Document links on New DataSources for Line Items from FI-GL, FI-AP, FI-AR
for( 0FI_GL_14, 0FI_AR_14, 0FI_AP_14 ). and what is the advantage of using this data sources.
Currently we are using the Data Sources with ( 0FI_GL_4, 0FI_AR_4, 0FI_AP_4 ) and we want to migrate to ( 0FI_GL_14, 0FI_AR_14, 0FI_AP_14 ).
Please sugest in this regard.
Thanks&Regards,
Nagendra prasad.
Edited by: nagendra prasad on Jul 20, 2010 5:12 AM
Edited by: nagendra prasad on Jul 20, 2010 6:05 AMHi
Please find FI_GL_14 related links
[http://help.sap.com/saphelp_nw70/helpdata/en/49/5700570223413085021a8b4ef1087a/frameset.htm]
[http://help.sap.com/saphelp_nw70/helpdata/en/45/4f8e8bbf3f4f63a5dd197ef7d53fa2/frameset.htm]
There is no FI_AR_14 and FI_AP_14. If you want more information directly goto help.sap.com you will find all the details.
Regards
YuvaraajP -
Create delivery document for line item 5 only manually
Hi Sap Experts,
We have scenario, we have created sales order with 10 line items while creating delivery we don’t want to show all the 10 line item to delivery creator (creating delivery manually).
We will send him mail saying that create delivery document for line item 5 and we will provide him material number and delivery date and shipping point with sales order number.
We don’t want to use partial delivery option that split the delivery and we don’t want to use VL10C tcode also.
What are options we have and how to customize this scenario?
Kindly suggest.
Regards,
KotliCan you be clear in your requirement?
One requirement is user should not select line items other than the one instructed to them
The other requirement is delivery split should happen based on item category
If your requirement is first one, you need to go with user exit USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1 but I am not sure, on what logic, coding to be included in this exit. If your requirement is second one, then just try in your system and share the outcome how system is functioning. You will come to know how standard SAP works.
G. Lakshmipathi -
How to mention posting keys for line items in IDOCS for fb01 posting
Hi all ,
I am using IDOCS for fb01 posting with posting keys 15 and posting keys 40 for line items .The data is in legacy file . I am using IDOC <b>ACC_GL_POSTING_01</b> for posting . Is there any way that I can mention the posting keys in the segment parameters of the IDOC.If there is anyone who have done fb01 posting with IDOCS,please help me with the code .Please treat the question as urgent .
Thanks in advanceHi Arshad,
There is no fecility to enter Posting keys explicitly.. It is determined automaticall by the Credit/Debit amounts u enter in GL data in the segments E1BPACGL08 and E1BPACCR08 and also it depends on the Customer and Vendor no.
Sreedhar -
Error Handling in table control for line item.
Hi,
Please how to do error handling in table control for line item in bdc,i have used format_message for header but i don't no fill decamps internal tabled and how to do background processing in call transaction.
ThanksBackground processing is not possible using call transaction method.
You can create an executable program which can have CALL TRANSACTION BDC code. And this can be run in background.
What do you exactly mean by Error handling for Items in table control. Can you give some more details. -
OBBH Substitutuions for line items.
HI,
We are trying to assign cost centers for GL accounts using FI susbstitution rules ( OBBH ) in exit routine ZGGBS000 ( RGGBS000 ).
The BSEG and BKPF ( line item substitution ) values are populated when the routine is triggered however we also need VBAP values too, they remain empty. Is there a way i could get the VBAP values filled too.
Thanks.Ok. Inside the exit we have BSEG and BKPF values populated and looping depending on the line items.
For Ex : for line item 1 when the control comes in the exit, VBAP values are not populted whereas the BSEG values are populated.
I needed VBAP values to cross reference the GL account. On certain material divison i needed to populate cost center.
My problem was addressed using a user-exit. -
Define Additional Fields for Line Item Display
Dear gurus,
I'd like to ask for your help again, please. I've just added the field BKPF-USNAM to the list of fields of FBL1N using IMG:" Financial Accounting-> Accounts Receivable and Accounts Payable->Vendor Accounts->Line Items-> Display Line Items->Define Additional Fields for Line Item Display". When I run the report the field is correctly displayed but if I save the current layout and set it into the selection screen, the column appears is blank. And if I open the change layout window and click OK the column gets filled.
Is there another transaction that I must set new columns to FBL1N.
Thank you very much.
Paresh Jivani
Edited by: Jivani Paresh on Jul 31, 2009 9:16 AMHii,
When you will execute FBL1N, it will come up in standard format. if you want to see any specific fields,then you have to go to Change Layout button and choose from available fields as per your requirement and then execute.
For future reference, you can save this layout as a Variant and then you can directly execute that report using that variant.
Dhara D. -
Subtotal for line item in REUSE_ALV_HIERSEQ_LIST_DISPLAY
Hi Abapers,
Is it possible to have subtotal functionality for line item for
REUSE_ALV_HIERSEQ_LIST_DISPLAY.
when i select particular line item and press subtotal button
system displaying information mesage
"Subtotals cannot be calculated using item
characteristics"
Even when i executed standard hie program same message displaying for line item.
please provide any sample code for subtotal for line item .
regards,
Hari priyajust copy the program and execute
*& Report Z_HIERSEQ_REP2 *
*& author : ramesh.k *
*& title : hierseq list in alv format *
REPORT z_hierseq_rep2 MESSAGE-ID zrae.
TYPE-POOLS : slis.
*structure declarations
*structure for likp
TYPES : BEGIN OF ty_likp,
vbeln TYPE vbeln_vl,
vkorg TYPE vkorg,
END OF ty_likp.
*structure for lips
TYPES : BEGIN OF ty_lips,
vbeln TYPE vbeln_vl,
posnr TYPE posnr_vl,
matnr TYPE matnr,
matkl TYPE matkl,
ntgew TYPE ntgew_15,
END OF ty_lips.
*internal table declarations
DATA : t_likp TYPE STANDARD TABLE OF ty_likp INITIAL SIZE 0,
t_lips TYPE STANDARD TABLE OF ty_lips INITIAL SIZE 0.
DATA : t_fieldcat TYPE slis_t_fieldcat_alv,
t_sortinfo TYPE slis_t_sortinfo_alv,
i_events TYPE slis_t_event.
*workareas
DATA : w_likp TYPE ty_likp,
w_lips TYPE ty_lips,
w_fieldcat TYPE slis_fieldcat_alv,
w_keyinfo TYPE slis_keyinfo_alv,
w_sortinfo TYPE slis_sortinfo_alv,
W_event TYPE slis_alv_event ,
sub_text type slis_subtot_text.
*global declarations.
DATA : g_vbeln like likp-vbeln.
*selection-screen declarations
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
SELECT-OPTIONS : s_vbeln FOR g_vbeln.
SELECTION-SCREEN END OF BLOCK blk1.
AT SELECTION-SCREEN.
SELECT SINGLE
vbeln
FROM likp
INTO (w_likp-vbeln)
WHERE vbeln IN s_vbeln.
IF sy-subrc NE 0.
MESSAGE i001 WITH 'vbeln not found'.
ENDIF.
START-OF-SELECTION.
get_data_likp
PERFORM sub_getdata_likp.
get_data_lips
PERFORM sub_getdata_lips.
fieldcatlog_build
PERFORM build_fieldcatlog.
*SORTINFO FOR SUBTOTALS
PERFORM get_sortinfo.
*KEYINFORMATION
PERFORM get_keyinfo.
*LIST DISPLAY
PERFORM alv_list_display.
*& Form sub_getdata_likp
extracting the data from likp.
--> p1 text
<-- p2 text
FORM sub_getdata_likp .
SELECT vbeln
vkorg
FROM likp
INTO TABLE t_likp
WHERE vbeln IN s_vbeln.
ENDFORM. " sub_getdata_likp
*& Form sub_getdata_lips
extracting data from lips.
--> p1 text
<-- p2 text
FORM sub_getdata_lips .
SELECT vbeln
posnr
matnr
matkl
ntgew
FROM lips
INTO TABLE t_lips
FOR ALL ENTRIES IN t_likp
WHERE vbeln = t_likp-vbeln.
ENDFORM. " sub_getdata_lips
*& Form build_fieldcatlog
text
--> p1 text
<-- p2 text
FORM build_fieldcatlog .
*FIELDCATLOG FOR HEADER TABLE
PERFORM build_fieldcatlog1 USING :
'1' 'VBELN' 'DELIVERY NO' 'T_LIKP' ' ' ' ' ' ',
'2' 'VKORG' 'GROUP' 'T_LIKP' ' ' ' ' ' ',
*FIELDCATLOAG FOR ITEM TABLE
'1' 'POSNR' 'ITEM NO' 'T_LIPS' ' ' ' ' ' ',
'2' 'MATNR' 'MAT NO' 'T_LIPS' ' ' ' ' ' ',
'3' 'MATKL' 'GROUP' 'T_LIPS' ' ' ' ' ' ',
'4' 'NTGEW' 'QUAN' 'T_LIPS' 'X' 'X' 'X'.
ENDFORM. " build_fieldcatlog
*& Form build_fieldcatlog1
text
-->P_0185 text
-->P_0186 text
-->P_0187 text
-->P_0188 text
FORM build_fieldcatlog1 USING
pcol TYPE char2
pfldname TYPE char8
pseltext TYPE char20
ptabname TYPE char10
psum TYPE char10
PQUAN TYPE CHAR15
PSUBTOTAL TYPE CHAR40.
w_fieldcat-col_pos = pcol.
w_fieldcat-fieldname = pfldname.
w_fieldcat-seltext_m = pseltext.
w_fieldcat-tabname = ptabname.
w_fieldcat-do_sum = psum.
W_FIELDCAT-qfieldname = PQUAN.
W_FIELDCAT-subtotals_text = PSUBTOTAL.
APPEND w_fieldcat TO t_fieldcat.
ENDFORM. " build_fieldcatlog1
*& Form GET_KEYINFO
text
--> p1 text
<-- p2 text
FORM get_keyinfo .
w_keyinfo-header01 = 'VBELN'.
w_keyinfo-item01 = 'VBELN'.
ENDFORM. " GET_KEYINFO
*& Form ALV_LIST_DISPLAY
text
FORM alv_list_display .
DATA : S_REPID TYPE SY-REPID.
S_REPID = SY-REPID.
DATA W_LAYOUT TYPE SLIS_LAYOUT_ALV.
W_LAYOUT-totals_text = 'G.TOTAL'.
W_LAYOUT-subtotals_text = 'SUBTOTAL_TEXT'.
*FORM subtotal_text CHANGING p_total TYPE any
p_subtot_text TYPE slis_subtot_text.
p_subtot_text-criteria = 'VBELN'.
*p_subtot_text-max_len = 40.
*p_subtot_text-display_text_for_subtotal
*= 'SUBTOTAL'.
**ENDIF.
*ENDFORM.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
i_callback_program = S_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
IS_LAYOUT = W_LAYOUT
it_fieldcat = t_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = t_sortinfo
IT_FILTER =
IS_SEL_HIDE =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_DEFAULT = 'X'
I_SAVE = 'X'
IS_VARIANT =
IT_EVENTS = i_eventS
IT_EVENT_EXIT =
i_tabname_header = 'T_LIKP'
i_tabname_item = 'T_LIPS'
I_STRUCTURE_NAME_HEADER =
I_STRUCTURE_NAME_ITEM =
is_keyinfo = w_keyinfo
IS_PRINT =
IS_REPREP_ID =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab_header = t_likp
t_outtab_item = t_lips
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " ALV_LIST_DISPLAY
*& Form GET_SORTINFO
text
--> p1 text
<-- p2 text
FORM get_sortinfo .
w_sortinfo-fieldname = 'VBELN'.
w_sortinfo-tabname = 'T_LIKP'.
W_SORTINFO-group = TEXT-001.
w_sortinfo-subtot = 'X'.
APPEND w_sortinfo TO t_sortinfo.
ENDFORM. " GET_SORTINFO -
Change the sales order reason for rejection for line item
Hi,
i want to change the sales order reason for rejection for line item.
iam using bapi_salesorder_change.but i unable to change the sales order.
if possible please provide me what are the fields necessary for changing
sales order reason for rejection for line item.
Regards,
SureshThis is the standard config to supress printing on the rejected item. Are you using standard programs or customised ?
-
Need a scenario where we go for line item diemension?
can anyone explain the senario where we use the line item dimension ?
and how we know that size of dimension is more than fact tablw?Hi
You need to roughly estimate that if you put two characteristics in one dimension means,
say plant and material
say there are 100 plants and 1000 materials...
then your dimension table will have 100 * 1000 = 100000 entries.so your fact table need to contain 100000 entries for these two chars...
.instead of putting these two into one dimension...if you put two dimensions...total entries in two dimensions are 100 + 1000= 1100...so your fact table contains 1100 entries...right???
so you need to think like this...if you feel that a characteristic may contains high cardinality then you have to go for line item dimension
run program
sap_infocube_designs
this will give the fact to dimension rations of all your cubes and indicate if the cube is balanced or not.
Hope it helps
Thanks
Teja
Message was edited by:
Teja badugu
Maybe you are looking for
-
The installator can't find HP LJ 1536 but network and other computers works fine
I have small office network with 10 windows 7 32bit machines connected with wires. The router is Cisco E2000 and the switch is D-Link. The office have 3 printers - Two HP LJ 1536 and one HP LJ 1520 color printer. All computers work fine with all thes
-
Mail 7.3 (1878.6) not displaying images in random messages.
In the last couple of weeks, I've noticed that, with no preference changes made by me, that random messages are not displaying images only empty boxes with the small blue question-mark box in the middle. This is almost exclusively from companies and
-
UK Iphone4 with US itunes account
Hi - please can anyone advise on whether there will be any issues with me syncing my (UK) iphone 4 with my US itunes account?
-
Advice on DVD Writer for PowerBook - Matshita DVD-R UJ-815
Hi there, I have been attempting to burn DVDs on my PowerBook using Toast Titanium Version 6 - TO NO AVAIL. During my first few attempts to burn DVDs, the SuperDrive accepted the disc but was unable to complete the Encoding process. Burning data file
-
I enabled airprint but now the reader doesn't work on my iphone4
I have an Iphone 4 and tried using the airprint feature with my new computer and printer. I finally got the airprint to work but the reader on websites no longer shows up. This defeats the whole purpose of the airprint. Now I can't print an article