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

Problems in deleting line items in smartforms based on conditions

Hi all,

i have created a smartform in which it is for a PR, and its related all PO's line items,

my requirement is that i have to show all the line items in my smartform in left side,

while right side i am showing details of line items of all PO, but i am not able to delete

line items related to each PO separetely in outpot, because lets for a single PR, lets say i have three PO.

Now for PO1, may be 2 line items deleted, for PO2. any 4 line items got deleted,

and may be for PO3, no line items got deleted.

I am not getting how could i achieve this, please sujjest me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 02, 2014 at 05:06 AM

    Hi srikant,

    first of all please alaborate your queries, if i am not wrong you wants to show all line itemms of the PR,

    and when it comes to show the line items of all PO's, those lene items that are not present for a PO, should not get displayed in your smartforms.

    Am i right, then please revert me back.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Sanjeev Kumar

      Hi Sanjeev,

      i have my loekz1, loekz2 and loekz3 fields into internal table it_spa

      and i have placed wa_spa-loekz1, wa_spa-loekz2 and wa_spa_loekz3 in respective PO1

      PO2 and PO3 line item details, and i got my issue resolved.

      Thanks a lot buddy for your help.

  • Posted on Jan 02, 2014 at 05:35 AM


    In your intenral table are you having unnecessary PO items not related to PR.....?


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 02, 2014 at 06:14 AM

    Hi, Create one temp internal table and on that temp internal table pass the records which needs to displayed, means not deleted line items on the smartform and loop that temp intenal table data, so that you can have only record displayed on the smartform , this code to be write it in code lines.

    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.