Hi Anju,
unfortunately the Header - Lineitem scenario is not yet supported with the GWPAM / Gateway for Microsoft Excel BPX add-in scenario. You should be able to develop such a scenario using the Gateway for Microsoft Excel template which is available in Visual Studio -- however, unlike in the Gateway for Microsoft Excel BPX scenario you will need to code something.
Regards,
Holger.