Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: Issue with the Select-Options - Batch Field

$
0
0

Hi,

 

Precisely for this reason I am requesting screenshot so that I can see in the field and the value passed and actual data holding that batch number.

 

I suggest using the conversion routines as well. Batch is 10 characters field, so you need append 0 for characters that are blank. So if your batch has 2 characters then ad 8 times 0, when batch no crosses 99, append only 7 0. Code snippet for your reference.

 

data t_batch type charg_d.

 

data:  ls_lips type lips,

       lt_lips type STANDARD TABLE OF lips.

 

SELECT-OPTIONS s_batch for t_batch.

 

if not s_batch is INITIAL.

  loop at s_batch.

 

      CALL FUNCTION 'CONVERSION_EXIT_CHARG_INPUT'

      EXPORTING

        input         = s_batch-low

      IMPORTING

       OUTPUT        = s_batch-low              .

 

    modify s_batch.

 

  endloop.

endif.

 

Regards

Abhi


Viewing all articles
Browse latest Browse all 10482

Trending Articles