Query regarding to display a bill

Hi, I am using two tables Transaction_Details and Lab_work_dtl. if I entered value in both the table corresponding to same bill_no. then it desplays the bill. if i do not enter the value in any one of the table then it desplays the msg no data found. i am using two other related tables also Party_Details and vehicle_details. i am not getting where i am doing wrong.please help me to solve the problem.
declare
a number;
b varchar2(20);
c varchar2(50);
d varchar2(50);
e varchar2(50);
f varchar2(50);
g varchar2(50);
h varchar2(4000);
T NUMBER;
P NUMBER;
SA NUMBER;
K NUMBER;
FA NUMBER;
HA NUMBER;
KA NUMBER;
KH NUMBER;
MA NUMBER;
cnt NUMBER;
tot number;
l number;
TH NUMBER;
FS NUMBER;
va number;
am number;
J NUMBER;
vat_am number;
BC NUMBER;
bd date;
PH NUMBER;
WC VARCHAR2(4000);
ST NUMBER;
cursor c1 is SELECT VAT,SUM(AMOUNT),SUM(VAT_AMOUNT) FROM TRANSACTION_DETAILS GROUP BY BILL_NO,VAT HAVING BILL_NO=:P42_BILL_NO;
BEGIN
select distinct bill_no,bill_date,vehicle_no,PARTY_NAME into a,bd,b,g from transaction_details where bill_no =:P42_BILL_NO ;
select chasis_no,ENGINE_NO,MAKE,MILEAGE into c,d,e,f from VEHICLE_DETAILS where vehicle_no =:P42_VEHICLE_NO;
select ADDRESS into h from PARTY_DETAILS where PARTY_NAME =:p42_PARTY_NAME;
htp.p('<html>
<body>
<table border="1" width="75%" bordercolorlight="#003366" cellspacing="0" bordercolordark="#003366" id="table1">
<tr>
          <td width="6%" align="center" bgcolor="#003366"><b>
          <font face="Verdana" size="2" color="#FFFFFF">SL. No.</font></b></td>
          <td width="49%" align="center" bgcolor="#003366"><b>
          <font face="Verdana" size="2" color="#FFFFFF">DESCRIPTIONS</font></b></td>
          <td width="15%" align="center" bgcolor="#003366"><b>
          <font face="Verdana" size="2" color="#FFFFFF">QTY.</font></b></td>
          <td width="14%" align="center" bgcolor="#003366"><b>
          <font face="Verdana" size="2" color="#FFFFFF">RATE</font></b></td>
          <td width="15%" align="center" bgcolor="#003366"><b>
          <font face="Verdana" size="2" color="#FFFFFF">AMOUNT</font></b></td>
     </tr>');
FOR x IN(SELECT item_name, qty,rate
FROM transaction_details WHERE bill_no =:P42_BILL_NO)
LOOP
     HTP.P('<tr>
          <td width="6%"> </td>
          <td width="49%"  align="left"> '|| HTF.escape_sc (x.item_name)||'</td>
          <td width="15%" ALIGN="right">'|| HTF.escape_sc (x.qty)||'</td>
          <td width="14%" ALIGN="right">'|| HTF.escape_sc (x.rate)||'</td>
          <td width="15%" ALIGN="right">'|| HTF.escape_sc (x.qty)* HTF.escape_sc (x.rate)||'
          </td>
     </tr>');
END LOOP;
HTP.P('<tr>
<td width="38">  </td>
<td width="29"> </td>
<td width="447"> </td>
<td>  </td>
<td width="95">
<p align="center">------------------</td>
</tr>');
KA:=0;
PH:=0;
open c1;
loop
FETCH c1 INTO va,am,vat_am;
exit when c1%notfound;
KA :=KA+am;
PH:=PH+vat_am;
BC:=KA+PH;
HTP.P('<tr>
<td width="38">  </td>
<td width="446"> VAT'||HTF.escape_sc (va)||'% OF Rs.'||HTF.escape_sc (am)||'</td>
<td width="116"> </td>
<td></td>
<td width="172">
<p align="right">'
|| HTF.escape_sc (vat_am)
||'</td>
</tr>');
end loop;
close c1;
HTP.P('<tr>
<td width="38"> </td>
<td width="447"> TOTAL</td>
<td> </td>
<td width="95"></td>
<td width="172">
<p align="right">'
|| HTF.escape_sc (KA)
||'</td>
</tr>');
HTP.P('<tr>
<td>  </td>
<td width="30">  </td>
<td width="118">  </td>
<td width="95"> </td>
<td width="173">
<p align="center">------------------</td>
</tr>
<tr>
<td>  </td>
<td width="446" align="left"> TOTAL</td>
<td width="118"> </td>
<td width="95"></td>
<td width="173">
<p align="right">'
|| HTF.escape_sc (BC)
||'</td>
</tr>
<tr>
<td>  </td>
<td width="446" align="left"> LABOUR CHARGES :-</td>
<td width="118"> </td>
<td width="95"></td>
<TD width="173"></td>
</tr>');
SELECT COUNT(*) INTO J FROM LAB_WORK_DTL GROUP BY BILL_NO HAVING BILL_NO=:P42_BILL_NO;
IF (J>0) THEN
FOR Y IN(SELECT WORK_DETAIL,LABOUR_AMT
FROM LAB_WORK_DTL WHERE bill_no =:P42_BILL_NO)
LOOP
HTP.P('<tr>
<td>  </td>
<td width="446" align="left"> '||NVL(HTF.escape_sc (Y.WORK_DETAIL),0)||'</td>
<td width="118"> </td>
<td width="95"></td>
<td width="173">
<p align="right">'|| NVL(HTF.escape_sc(Y.LABOUR_AMT),0)||'</td>
</tr>');
END LOOP;
SELECT NVL(SERVICE_TAX,0),NVL(SUM(LABOUR_AMT),0),NVL(SUM(SERVICE_TAX_AMT),0) INTO ST,T,P FROM LAB_WORK_DTL GROUP BY BILL_NO ,SERVICE_TAX HAVING BILL_NO=:P42_BILL_NO;
TH:=T+P;
FS:=BC+TH;
HTP.P('
<TR>
<td>  </td>
<td width="30"> </td>
<td width="118"> </td>
<td width="95"></td>
<td width="173">  </td>
</tr>');
HTP.p ( '<tr>
<td width="36">  </td>
<td width="445"> </td>
<td>  </td>
<td width="97"> </td>
<td width="172"><p align="center">------------------</td>
</tr>
<tr>
<td width="36">  </td>
<td width="445"> TOTAL</td>
<td> </td>
<td width="97"></td>
<td width="172"><p align="right">'||NVL(ROUND(HTF.escape_sc(T),2),0)||'</td>
</tr>
<tr>
<td width="36">  </td>
<td width="445"> SERVICE TAX '||NVL(HTF.escape_sc (ST),0)||' OF Rs.'||NVL(ROUND(HTF.escape_sc (T),2),0)||'</td>
<td> </td>
<td width="97"></td>
<td width="172"><p align="right">'|| NVL(ROUND(HTF.escape_sc(P),2),0)||'</td>
</tr>
<tr>
<td width="36">  </td>
<td width="445"> </td>
<td>  </td>
<td width="97"> </td>
<td width="172"><p align="center">------------------</td>
</tr>
<tr>
<td width="36">  </td>
<td width="445" align="left"> BILL AMOUNT</td>
<td> </td>
<td width="97"></td>
<td width="172" align="right"><p >'|| NVL(ROUND(HTF.escape_sc (FS),2),0)||'</td>
</tr>
<tr>
<td width="36">  </td>
<td width="445">
<p align="left"> '||NVL(F_WORDS(HTF.escape_sc (FS)),0)||'</td>
<td>  </td>
<td width="97"> </td>
<td width="172"><p align="center">------------------</td>
</tr></table>');
END IF;
HTP.P('</body>
</html>');
END;Edited by: Manoj Kaushik on Mar 28, 2010 11:14 PM
Edited by: Manoj Kaushik on Mar 28, 2010 11:20 PM
Edited by: Manoj Kaushik on Mar 28, 2010 11:23 PM
Edited by: Manoj Kaushik on Mar 28, 2010 11:29 PM
Edited by: Manoj Kaushik on Mar 28, 2010 11:38 PM

Hi Manoj,
Write before your code and then again after your code.
Forum help might be good to read also
http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
Read
{quote}
Are there any useful formatting options not shown on the sidebar?
{quote}
Br,Jari                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Query regarding updation thru a Procedure

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru my Java application.
    The submit procedure saves the XML data in the database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
    I would like to display the new row with the new elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru
    my Java application.
    The submit procedure saves the XML data in the
    database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by
    adding new elements to the same row.This row now
    contains additional XML elements.
    I would like to display the new row with the new
    elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with
    the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
    Khurram

  • Query regarding infotype

    hi sap experts i have a query regarding infotypes ..
    which infotype displays EEO Exmpt indicator and EEO reporting  unit  indicator and job classification ..please let me know ..
    thanks in advance,,..

    Hi,
    Its infotype 1610.
    Regards,
    LNB

  • Query regarding Crystal Reports Server

    Hi,
    I am new to Crystal Reports.
    I have created a couple of .rpt files using CR2008 and I am loading these report files in my aspx pages using CrystalReportViewer control.
    I am planning to host my webApp on IIS in production environment. Maximum simultaneous/concurrent connections to my reports would be 1 or 2.
    My question is:
    1. Do I need Crystal Reports Server in this scenario?
    2. In future if the number of concurrent users to report increases then do I need to go for Crystal Reports Server? Will just buying and installing the Crystal reports server on production server work? or will I have to do some configuration or some other changes in the existing deployed reports? OR Will I have to deploy my existing reports on Crystal Report Server again?
    Any help will be highly appreciated.
    Thanks in advance,
    Manish

    Manish, please do not cross post:
    Query regarding Crystal Reports Server
    See the [Rules of Engagement|http://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] for more details.
    Marking this thread as answered and locking...
    - Ludek

  • PDF display at Biller Direct

    Hi Friends,
    I need to display billing data in PDF on portal for Biller Direct.
    I had done the reqired code for all BADI given by SAP.Still I am not getting any PDF display for billing.
    Please help me out/suggest the right approach to be follow.
    Ricky
    Edited by: Ricky Maheshwari on Jan 5, 2010 12:29 PM

    Hi Sim,
    Please tell what exactly Issues are you facing in SAP FSCM Technical Implementation?
    Regards,
    Rick

  • BI query not properly displaying in Consumer Portal - Through FPN - RRA

    Hi Everyone,
    we have implemented FPN between EP 7.0 and BI 7.0 . A role with BI reports (iview created using Bex7.0 template) are working fine in BI Portal.
    When its RRA to a users in EP-consumer portal, its not coming properly. I mean it shows some default header/Menu (like New Analysis Open, Save As, Information, Send etc..) in EP but not displaying the details of the report. Other URL iviews are working fine in RRA, just BI query is not coming properly. All pre-requisite for FPN is done properly and SSO configured.
    Appreciate if some one can provide a solution
    Thanks

    Dear Guru,
    I am also facing the same problem.  What you had faced earlier.  Can you explain the detailed solution to resolve this
    problem. BI query not properly displaying in Consumer Portal - Through FPN - RRA.
    If you can explain the solution that will be great.
    With Thanks and Regards,
    Anil Kumar.

  • Query regarding Pagination

    Hi all,
    I have a query regarding the Pagination in the table component.I have a table and this table has been paginated with size 5. I am using an ObjectListdataprovider for populating data in table.Here i populate the ObjectList from another page and show it here in another page.Here we can chane the data.when i am clicking on the save it only considering the first 5 values dat is currently showing.This thing happens only when i didn't go the the second page using page navigation buttons.That is it ony saves the data that got focus.Can anyone have any solution?Please help me..
    Thanks and Regards
    Sree

    Do you have a message group component on the page to display runtime errors?
    Did you check the server log (right-click Deployment Server and choose View Server Log) to see if any errors show up there?
    Do you have any table colomn components bound to non-string fields? If so, did you drop the right type of converters on those components?

  • A query regarding synchronised functions, using shared object

    Hi all.
    I have this little query, regarding the functions that are synchronised, based on accessing the lock to the object, which is being used for synchronizing.
    Ok, I will clear myself with the following example :
    class First
    int a;
    static int b;
    public void func_one()
    synchronized((Integer) a)
    { // function logic
    } // End of func_one
    public void func_two()
    synchronized((Integer) b)
    { / function logic
    } // End of func_two
    public static void func_three()
    synchronized((Integer) a)
    { // function logic
    } // End of func_three, WHICH IS ACTUALLY NOT ALLOWED,
    // just written here for completeness.
    public static void func_four()
    synchronized((Integer) b)
    { / function logic
    } // End of func_four
    First obj1 = new First();
    First obj2 = new First();
    Note that the four functions are different on the following criteria :
    a) Whether the function is static or non-static.
    b) Whether the object on which synchronization is based is a static, or a non-static member of the class.
    Now, first my-thoughts; kindly correct me if I am wrong :
    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisation, since in case obj1 and obj2 happen to call the func_one at the same time, obj1 will obtain lock for obj1.a; and obj2 will obtain lock to obj2.a; and both can go inside the supposed-to-be-synchronized-function-but-actually-is-not merrily.
    Kindly correct me I am wrong anywhere in the above.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation.
    Kindly correct me I am wrong anywhere in the above.
    c) In case 3, we have a static function , synchronized on a non-static object. However, Java does not allow functions of this type, so we may safely move forward.
    d) In case 4, we have a static function, synchronized on a static object.
    Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation. But we are only partly done for this case.
    First, Kindly correct me I am wrong anywhere in the above.
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".
    Another query : so far we have been assuming that the only objects contending for the synchronized function are obj1, and obj2, in a single thread. Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.a; and again obj1 trying to obtain lock for obj1.a, which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed. Thus, effectively, our synchronisation is broken.
    Or am I being dumb ?
    Looking forward to replies..
    Ashutosh

    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisationThere is no synchronization between distinct First objects, but that's what you specified. Apart from the coding bug noted below, there would be synchronization between different threads using the same instance of First.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.obj1/2 don't call methods or try to obtain locks. The two different threads do that. And you mean First.b, not obj1.b and obj2.b, but see also below.
    d) In case 4, we have a static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.Again, obj1/2 don't call methods or try to obtain locks. The two different threads do that. And again, you mean First.b. obj1.b and obj2.b are the same as First.b. Does that make it clearer?
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".That's what happens in any case whether you write obj1.func_four(), obj2.func)four(), or First.func_four(). All these are identical when func_four(0 is static.
    Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.aNo we don't, we have a thread trying to obtain the lock on First.b.
    and again obj1 trying to obtain lock for obj1.aYou mean obj2 and First.b, but obj2 doesn't obtain the lock, the thread does.
    which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed.Of course it won't. Your reasoning here makes zero sense..Once First.b is locked it is locked. End of story.
    Thus, effectively, our synchronisation is broken.No it isn't. The second thread will wait on the same First.b object that the first thread has locked.
    However in any case you have a much bigger problem here. You're autoboxing your local 'int' variable to a possibly brand-new Integer object every call, so there may be no synchronization at all.
    You need:
    Object a = new Object();
    static Object b = new Object();

  • Query regarding the conversion of DME file in MT940 format.

    Hello Experts,
    I have a query regarding the generation of MT940 file after generating the payment file from other DME tree.
    After completion of payment run, my payment file is generated in the DME format which is according to the DME tree.
    I want to convert the DME file (which is generated via F110)  from existing format to the standard MT940 format.
    Is there any standard program which converts the DME file to MT940. If so,  please inform me as early.
    I have tried to upload the DME file in FF.5 transaction, but it is not allowing me to convert the file in MT940 structure.
    Or please inform the steps how i can convert the file .
    Awaiting for your inputs.
    Thanks in advance

    Hi Zareena.
    I would like to suggest,
    SX_OBJECT_CONVERT_RAW_TXT.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Query regarding Cluster nodes in CC

    Hi Experts,
    We have a query regarding the cluster nodes available in the CC monitoring.
    Can two nodes of a same channel can poll at the same time?
    Kindly suggest what should be done to make a specific cluster node of a CC polls at a particular time.
    Thanks
    Suganya.

    Hi,
    There is an answered thread on this
    Processing in  Multiple Cluster Nodes
    Regards,
    Manjusha

  • Query regarding G/LAccounts in psoting

    Hi Experts,
    I have one query regarding PCP0.
    After executing PCP0,If We double click on the posting document we can see the number of G/L accounts in that posting Document.If we double click on each G/L Account it shows all the revision information indetail for all payments cumulated into that particular G/L Account.
    Some of the G/L's are appearing as single line in the posting document and if we double click for the revision information it is showing all the Wagetypes with personnel numbers and the total of each wagetype.
    Some of the G/L's we can see Multiple times for each individual.
    Can any one please explain where does we set up the the revision information for the G/L Accounts .
    Appreciate If anyone can help to know this information.
    Thanks & Regards,
    Sandhya.

    Hi Gopal,
    Counting class are assigned to the Periodic work Schedule 1 to 9 are just arbitart sequence numbers and have no meaning in general they are used for linking Pweriodic Work schedules with differences.
    You can use the class for absence and attendance counting to specify different methods of counting according to the period work schedule.
    They have no other meaning apart from that.
    Thanks and Regards
    Swati

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • Query regarding Expand all functionality in hier seq list.

    Hello Every body,
    Application: I am displaying a list(Hier seq) using cl_salv_hierseq_table method.
    Important peices of code:-
    cl_salv_hierseq_table=>factory(
      EXPORTING
        t_binding_level1_level2 = gt_binding
      IMPORTING
        r_hierseq = gt_table
      CHANGING
        t_table_level1 = gt_final_h
        t_table_level2 = gt_final_i ).
    *... set expand column
      gt_columns->set_expand_column( 'EXPAND' ).
    *... set items expanded
      gt_level = gt_table->get_level( 1 ).
      gt_level->set_items_expanded( ).
    *register to the event on_user_command
      SET HANDLER gt_events->on_user_command FOR lt_events.
    Here i had added Refresh button in the application toolbar of the above ALV which is not in the standard one.
            PERFORM refresh_list_info USING e_salv_function.
            inside this perform the main peice of code is:
            gt_table->refresh( ).             "Refresh: Rebuilds the display list.
    QUERY: The first display show all the header and items records as expanded by default.
                  when i am trying to refresh the list, its displaying me the list with updated data in it
                 properly BUT the only problem is the items are closed by default after refresh.
                 so every time user needs to click the Expand option to view item records after refresh.
                 Here I would like to have the items records expanded as well by default after Refresh.
                 how to acheive this?
                Any suggestions to use any more methods or so..
               Your help will be highly appreciable.
    Thanks,
    Pavan.

    check this document for reference:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/profile/using%252bhierarchically%252b-sequential%252btable%252bfactory%252bmethod
    cheers
    Aveek

  • Query regarding App V Deployment - (Deploying DriverMSI in App - V)

    Hi All,
    This is my query regarding deployment of a driver MSI using App V. I have tried sequencing "NMap software" which has Kernel driver as service. I have separated the Kernel driver and wrapped in an MSI and tried deploying the Kernel Driver MSI using
    the DeploymentConfig.xml file but its not happening.
    I have tried writing script in DeploymentConfig.xml in AddPackage Tag as shown in the below commands where I have added driver MSI in sequenced package, and tried deploying the DeploymentConfig.xml in powershell during Add-Package event but the driver
    MSI is not getting installed in Client machine.
    <AddPackage>
            <Path>msiexec.exe</Path>
            <Arguments>/i Nmap_KernelDriver.msi /qb /l*v c:\windows\system32\LogFiles\Install_Nmap.log</Arguments>
            <Wait RollbackOnError="true" Timeout="30"/>
          </AddPackage>
          <RemovePackage>
            <Path>msiexec.exe</Path>
            <Arguments>/x {4BAB3E93-716E-4E18-90F0-1DA3876CBEB6} /qn</Arguments>
            <Wait RollbackOnError="false" Timeout="60"/>
          </RemovePackage>
        </MachineScripts>
    The other way I have tried is writing a vbscript for installing the driver MSI, added the vbs in sequenced package and called the same in DeploymentConfig.xml but no luck.Please find the command below.
    <!--
        <MachineScripts>
          <PublishPackage>
            <Path>wscript.exe</Path>
            <Arguments>[{AppVPackageRoot}]\..\Scripts\NMap_Driver_Install.vbs -guid 7c21d1e9-0fc4-4e56-b7bf-49e54d6e523f -name Insecure_Nmap_6.4_APPV</Arguments>
            <Wait RollbackOnError="true" Timeout="30"/>
          </PublishPackage>
          <UnpublishPackage>
            <Path>\\server\share\barfoo.exe</Path>
            <Arguments>-WithArgs</Arguments>
            <Wait RollbackOnError="false" Timeout="30"/>
          </UnpublishPackage>
    Please suggest any method to make this successful or kindly let me know if there is any mistake in the script.
    Thanks in advance,
    Vivek V

    Hi Nicke,
    These are the following methods and steps that I have performed for installing Driver MSi.
    Method 1:
    1. Included the driver MSI in Package Files Tab in sequencer and called the same MSI in DeploymentConfig.xml using the below script.
    <AddPackage>
            <Path>msiexec.exe</Path>
            <Arguments>/i Nmap_KernelDriver.msi /qb /l*v c:\windows\system32\LogFiles\Install_Nmap.log</Arguments>
            <Wait RollbackOnError="true" Timeout="30"/>
          </AddPackage>
          <RemovePackage>
            <Path>msiexec.exe</Path>
            <Arguments>/x {4BAB3E93-716E-4E18-90F0-1DA3876CBEB6} /qn</Arguments>
            <Wait RollbackOnError="false" Timeout="60"/>
          </RemovePackage>
        </MachineScripts>
    2. After the above steps, deployed the AppV package along with DeploymentConfig.xml in App V Client using the commands mentioned below.
    Set-ExecutionPolicy -Unrestricted
    Import-module Appvclient
    Set-AppVClientConfiguration -EnablePackageScripts 1
    Add-AppvClientPackage -Path "Path of the AppV file" -DynamicDeploymentConfig "Path of DeploymentConfig.xml"
    after trying the above steps the driver MSI is not getting installed.
    Method 2:
    1. Included the driver MSI and a VBS file(VBS contains script for calling the driverMSI)in Package Files tab in sequencer. Commandlines has been provided calling the vbs file in DeploymetConfig.xml as mentioned below.
    <!--
        <MachineScripts>
          <PublishPackage>
            <Path>wscript.exe</Path>
            <Arguments>[{AppVPackageRoot}]\..\Scripts\NMap_Driver_Install.vbs -guid 7c21d1e9-0fc4-4e56-b7bf-49e54d6e523f -name Insecure_Nmap_6.4_APPV</Arguments>
            <Wait RollbackOnError="true" Timeout="30"/>
          </PublishPackage>
          <UnpublishPackage>
            <Path>\\server\share\barfoo.exe</Path>
            <Arguments>-WithArgs</Arguments>
            <Wait RollbackOnError="false" Timeout="30"/>
          </UnpublishPackage>
    2. after executing the above steps, tried deploying the AppV file along with DeploymentConfig.xml using the commands mentioned below,
    Set-ExecutionPolicy -Unrestricted
    Import-module Appvclient
    Set-AppVClientConfiguration -EnablePackageScripts 1
    Add-AppvClientPackage -Path "Path of the AppV file" -DynamicDeploymentConfig "Path of DeploymentConfig.xml"
    evenafter trying the above methods the driver MSI is not getting installed. Hope you can understand my explanations above.
    Regards,
    Vivek V

Maybe you are looking for