We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-abap] Using Dynamic Field Catalog

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from vinraag on Feb 16 at 5:39 AM
it is the 9 th col i.e


as said above I tried to loop the internal table it_cat into wa_fcat and use if...else statement like this...
loop at it_fcat into wa_fcat.
if it_final-sobsl = '50 '(sobsl is the field which denotes material is phantom in material master)
WA_FCAT-COL_POS = COL_POS + 8 .
WA_FCAT-ROW_POS = ROW_POS .
WA_FCAT-FIELDNAME = 'PHANTOM'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-SELTEXT_L = 'S.LOC'.
WA_FCAT-OUTPUTLEN = 10.
WA_FCAT-EMPHASIZE = 'C21'.
APPEND WA_FCAT TO IT_FCAT.
CLEAR WA_FCAT.
ELSE.
WA_FCAT-COL_POS = COL_POS + 8 .
WA_FCAT-ROW_POS = ROW_POS .
WA_FCAT-FIELDNAME = 'LGPRO'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-SELTEXT_L = 'S.LOC'.
WA_FCAT-OUTPUTLEN = 10.
WA_FCAT-EMPHASIZE = 'C21'.
APPEND WA_FCAT TO IT_FCAT.
CLEAR WA_FCAT.
ENDIF.
ENDLOOP.

I don't know how to proceed here...when I use the above if...else it skips the whole column and prints the next column...probably something wrong with my if condition ? while using 'write' statement I am fine I am getting it right.

---------------Original Message---------------
From: VINOD RAAGHAV
Sent: Friday, February 14, 2014 8:25 PM
Subject: Using Dynamic Field Catalog

I populate my field catalog to print storage location of the materials along with other few details in my alv_list_display... I need to handle it dynamically because for phantom materials we don't maintain storage location....for phantom materials we maintain this field 'SOBSL' as '50' in material master...so in this case if the storage location is maintained for the material it should fill the column with storage location else I need to fill the column as 'phantom assembly' which will have to be hard coded. Both these details has to be printed in the same column.

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2014 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
vinraag  
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language