Posts

SAP ABAP interview questions

Common SAP ABAP interview questions asked in most service based companies. It consist of 3 rounds which are Technical discussion, Management round and HR discussion. Here, I have posted some questions from Technical discussion. 1. What is singlton class? 2. What is persistant class? 3. How to add/remove required columns in ALV reports? 4. Will you use COMMIT / ROLLBACK in BADI? 5. Types  of BADI? 6. Difference between BAPI and RFC enabled FM? 7. Tables for MM/SD modules that you have worked with? 8. MM/SD/FI business flow? 9. Differnce between Selection-screen and Selection-screen-output? 10.How to find user exit? 11. Tcode for message text? 12. Tcode for processing IDOCS. 13. How will write code to show transaction once click on the line item in Interactive reports? 14. At which area you are very strong among all RICEF ? 15. Why ADOBE FORM is better than smartform? 16. What is session and call transaction methods in BDC? 17. FMs used in Session method in BDC? 18. Tcode for BDC rec...

SAP ABAP code snippet for dynamic variant value selection

 This is somewhat different requirement but it's most useful in case variant should update values dynamically into the particular fields. Here you go with sample code snippet for Dynamic variant selection. CALL FUNCTION 'RS_SUPPORT_SELECTIONS' EXPORTING report = sy - repid variant = 'YCF_MATP_D' EXCEPTIONS VARIANT_NOT_EXISTENT = 1 VARIANT_OBSOLETE = 2 OTHERS = 3 . *To autopopulate the variant for PRODUCT NO and LOCATION fields. AT SELECTION-SCREEN OUTPUT . DATA : it_yscm_transport TYPE TABLE OF YSCM_TRANSPORT . DATA : wa_yscm_transport TYPE YSCM_TRANSPORT . SELECT PRODUCT_NO LOCATION_ID FROM YSCM_TRANSPORT into CORRESPONDING FIELDS OF TABLE it_yscm_transport .  "#EC "#EC CI_NOWHERE . LOOP AT it_yscm_transport INTO wa_yscm_transport . Move : 'I' to LT_MATAB - SIGN ,        'EQ' to LT_MATAB - OPTION ,         wa_yscm_transport - PRODUCT_NO to LT_MATAB - LOW .      AP...