Skip to Content
avatar image
Former Member

In FBZ5,in Alternative Form, for multiple bank-cheques how to avoid rewriting logic?

Hi Experts,

In FBZ5,in Alternative Form, If there are multiple bank-cheques to be developed,how to get that done without modifying the ZRFFOUS_C everytime.

I have copy of RFFOUS_C as ZRFFOUS_C. I have commented the script lines in that copy and instead called a Smartform eg. Triggering program that calls smart-form when script name mentioned in alternative form is present in t042e-zforn. Now for two banks I have written logic.

My issue is that at ECC end the requirement will be bringing/adding up many new Bank cheques. How to handle this if user comes up with new bank requirement avoiding modifying the ZRFFOUS_C program again for every bank.

IS there a way where I can capture the "Alternative Form" name internally and call a smart-form for that. Kindly suggest its urgent.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Is this answered elsewhere.Kindly suggest.

  • Hi ,

    I am also having the same issue, If you get the answer please update.

    Can you please share the code changes done in program RFFOUS_C .

    Thanks,

  • Former Member

    Hi Monica,

    Currently I have created scripts and assigned them to fbz5 in the alternative forms for which I had designed smartforms to be called.

    So eg. if you have a smartfrom for say Bank "ABC" then just create a script by the name "Z_ABC" to be input in alternative forms.

    In the copied version of rffous_c i.e. "ZRFFOUS_C" just comment the script related logic in include ZRFFORI1 i.e.(Open forms,Read forms,Write forms,Close forms...you need to be finding all the respective statements) [below comment of new payment document number ] after At new reguh-vblnr write the below logic instead of script logic.

    IF t042e-zforn EQ 'ZBANKNAME1'.

    SUBMIT zdriverprog_bank1smartform WITH p_zbukr EQ reguh-zbukr

    WITH p_vblnr EQ reguh-vblnr

    WITH p_gjahr EQ regud-gjahr AND RETURN.

    elseif t042e-zforn EQ 'ZBANKNAME2'.

    SUBMIT zdriverprog_bank2smartform WITH p_zbukr EQ reguh-zbukr

    WITH p_vblnr EQ reguh-vblnr

    WITH p_gjahr EQ regud-gjahr AND RETURN.

    ENDIF.

  • Get RSS Feed

0 Answers