cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict the Number of sales orders in theTCode:VL10A whil creation

Former Member
0 Kudos

I'm creating the Delivery by using the batch job with program: RVV50R10C Here I need to restrict the number of sales orders numbers while creating deliveries for sales orders

Like system should pick the sales orders (sales documents) from 1 to 100 OR 100 to 200

Please advise me how to do it and what changes I need to do it

Accepted Solutions (0)

Answers (2)

Answers (2)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

Aslo, you can see Note 198137 - VL10: Customer-specific enhancements / user exits. As is for SO, check subroutine LV50R_VIEWG03. If cf_subrc = 1 thin this SO isn't seen in list.


*----------------------------------------------------------------------*
***INCLUDE LV50R_VIEWG03 .
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*&      Form  POSTAB_VEPVG_FILL_USER
*&---------------------------------------------------------------------*
FORM POSTAB_VEPVG_FILL_USER
     USING    IX_LIST_PROFIL    TYPE      SHP_VL10_LIST_PROFIL
              IX_PARAMETERS     TYPE      SHP_VL10_PARAMETERS
              IX_SELECT_OPTIONS TYPE      SHP_VL10_SELECT_OPTIONS
              IT_ENQUEUE        TYPE      SHP_VL10_PACKAGE_T
              IX_SD_ORDER       TYPE      SHP_VL10_SD_ORDER
              IS_VEPVG          TYPE      VEPVG
     CHANGING CS_POSTAB         TYPE      SHP_VL10_ITEM
              CF_SUBRC          TYPE      SYSUBRC.


 CF_SUBRC = 0.

*  cs_postab-zzfield = ......              "add new field to List

*  if xxxxxxx = yyyyyyy.
*    cf_subrc = 1.                         "Exclude this index from List
*  endif.

ENDFORM.                    " POSTAB_VEPVG_FILL_USER

I hope this helps you

Regards

Eduardo

Former Member
0 Kudos

Hello,

I guess you can create variant, with delivery dates defined as per factory calendar, for which you need tpo create deliveries.

viz. only those sales order for which delivery dates lies with next two working days, should be considered for delivery creation.

It may happen the sales order number which get assigned during creation, may be random, so it is best practice that you set up variant, as per delivery dates, so that respective sales order are converted into delivery.

BR,

Tushar