Skip to Content
author's profile photo Former Member
Former Member

sapscript program

Hey everyone,

i have created a form using SAPSCRIPT in which i have two radiobuttons G_QUO(QUOTATION) & G_PRO(PROFORMA) .

Now what i want is when i click on G_QUO in one of the windows it should come as quotation invoice and when i click on G_PRO in one of the windows it should come as proforma invoice.

Rightnow both are being printed Quotation or proforma invoice.

also where do i need to make changes in my code , pl.let me know.

Thanks in advance

sanchita

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 20, 2016 at 06:22 AM

    Hi Sanchita,

    I also had same kind of requirement in which what i have done is:

    In t-code NACE, i have maintained 2 different output types (G_QUO, G_PRO) with same program name and same script name.

    and in driver program, I byforget both invoice types with IF condition and call respective write forms for G_QUO and G_PRO.

    In your driver program should be like:

    IF nast-kschl = 'G_QUO'.

    perform open_form.

    perform start_form.

    perform write_form window element function.

    .

    .

    ELSEIF nast-kschl = 'G_PRO'.

    perform open_form.

    perform start_form.

    perform write_form window element function.

    .

    .

    ENDIF.



    Hope this will help you out.


    -Sunny

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 20, 2016 at 06:03 AM

    Hi,

    For starter I suggest that for new development you use Smartform (I find Smartform to be much more programmer friendly...) .

    I am assuming that you are using the same script for both forms so you have two options:

    - Split the form into two and call each one based on your radio buttons.

    - Use "Conditional Text: IF" in your form based on your radio buttons .

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 22, 2016 at 07:52 AM

    i have the two radiobuttons g_quo n g_pro in my driver program and if i use the IF condition to bring the output .

    where n what should i write the code ?

    pl specify whether to write it in my script form or in my driver program ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.